migrate to Rails 3 (only, not compatible with Rails 2)
This commit is contained in:
parent
1b516b75bd
commit
f1190e06c8
2
init.rb
2
init.rb
@ -1 +1 @@
|
|||||||
require File.dirname(__FILE__) + "/rails/init"
|
require "create_or_update"
|
||||||
|
@ -2,7 +2,7 @@ namespace :db do
|
|||||||
|
|
||||||
desc "Loads initial database models for the current environment."
|
desc "Loads initial database models for the current environment."
|
||||||
task :populate => :environment do
|
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|
|
Dir[File.join(RAILS_ROOT, 'db', 'populate', '*.rb')].sort.each do |fixture|
|
||||||
load fixture
|
load fixture
|
||||||
puts "Loaded #{fixture}"
|
puts "Loaded #{fixture}"
|
@ -1 +0,0 @@
|
|||||||
require "create_or_update"
|
|
Loading…
Reference in New Issue
Block a user