Make sure there is seeds.rb file before trying to append to it.

This commit is contained in:
Uģis Ozols 2012-02-02 15:49:07 +02:00
parent 5c3de1175f
commit ba9091cd14

View file

@ -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