Make sure there is seeds.rb file before trying to append to it.
This commit is contained in:
parent
5c3de1175f
commit
ba9091cd14
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ module Refinery
|
|||
end
|
||||
|
||||
def append_load_seed_data
|
||||
create_file 'db/seeds.rb' unless File.exists?(File.join(destination_root, 'db', 'seeds.rb'))
|
||||
append_file 'db/seeds.rb', :verbose => true do
|
||||
<<-EOH
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue