Skip to content

Commit

Permalink
Fix ruby migration generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jpowell committed Nov 2, 2018
1 parent a698501 commit 48133ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wcc-contentful-app/lib/generators/wcc/model_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def create_model_migrations
copy_file "#{singular}/migrations/generated_add_#{plural}.ts",
"db/migrate/#{timestamp}01_generated_add_#{plural}.ts"

Dir.glob("#{singular}/migrations/*.rb").each do |f|
Dir.glob("#{File.dirname(__FILE__)}/#{singular}/migrations/*.rb").each do |f|
copy_file f, "db/migrate/#{timestamp}_#{f}"
end
end
Expand Down

0 comments on commit 48133ee

Please sign in to comment.