for now, run seed fu automatically after migrate ... still think there should be a cleaner way
This commit is contained in:
parent
0c6cb2805a
commit
3d3b589b4d
2 changed files with 4 additions and 1 deletions
|
@ -47,4 +47,3 @@ PostActionType.seed do |s|
|
||||||
s.is_flag = true
|
s.is_flag = true
|
||||||
s.position = 7
|
s.position = 7
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
4
lib/tasks/db.rake
Normal file
4
lib/tasks/db.rake
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# we need to run seed_fu every time we run rake db:migrate
|
||||||
|
task 'db:migrate' => 'environment' do
|
||||||
|
SeedFu.seed
|
||||||
|
end
|
Reference in a new issue