migrate to Rails 3 (only, not compatible with Rails 2)

This commit is contained in:
Kevin Triplett 2011-01-08 12:22:15 -06:00
parent 1b516b75bd
commit f1190e06c8
4 changed files with 11 additions and 12 deletions

View File

@ -1 +1 @@
require File.dirname(__FILE__) + "/rails/init"
require "create_or_update"

View File

@ -2,7 +2,7 @@ namespace :db do
desc "Loads initial database models for the current environment."
task :populate => :environment do
require File.join(File.dirname(__FILE__), '/../lib', 'create_or_update')
require 'create_or_update'
Dir[File.join(RAILS_ROOT, 'db', 'populate', '*.rb')].sort.each do |fixture|
load fixture
puts "Loaded #{fixture}"

View File

@ -1 +0,0 @@
require "create_or_update"