Skip to content

Commit

Permalink
Remove now-unnecessary hack to force Rails 5.1-compatibility from gen…
Browse files Browse the repository at this point in the history
…erated migrations
  • Loading branch information
cbeer committed Apr 26, 2018
1 parent 86b11ac commit 309f8aa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions spec/test_app_templates/lib/generators/test_app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ def disable_carrierwave_processing
copy_file 'carrierwave.rb', 'config/initializers/carrierwave.rb'
end

def fix_up_migration_versions
Dir.glob('db/migrate/*.rb') do |f|
gsub_file f, /< ActiveRecord::Migration$/, '< ActiveRecord::Migration[4.2]'
end
end

def add_theme_assets
copy_file 'fixture.png', 'app/assets/images/spotlight/themes/default_preview.png'
copy_file 'fixture.png', 'app/assets/images/spotlight/themes/modern_preview.png'
Expand Down

0 comments on commit 309f8aa

Please sign in to comment.