lib/tramway/page/generators/install_generator.rb in tramway-page-1.2.2 vs lib/tramway/page/generators/install_generator.rb in tramway-page-1.3
- old
+ new
@@ -13,9 +13,15 @@
next_migration_number = current_migration_number(path) + 1
ActiveRecord::Migration.next_migration_number next_migration_number
end
def copy_migrations
- migration_template 'create_tramway_page_pages.rb', 'db/migrate/create_tramway_page_pages.rb'
+ migrations = [
+ :create_tramway_page_pages,
+ :add_view_to_tramway_page_pages
+ ]
+ migrations.each do |migration|
+ migration_template "#{migration}.rb", "db/migrate/#{migration}.rb"
+ end
end
end
end