lib/tramway/user/generators/install_generator.rb in tramway-user-2.1.1.1 vs lib/tramway/user/generators/install_generator.rb in tramway-user-2.1.2
- old
+ new
@@ -18,9 +18,16 @@
next_migration_number = current_migration_number(path) + 1
ActiveRecord::Migration.next_migration_number next_migration_number
end
def copy_migrations
- migration_template 'create_tramway_user_users.rb', 'db/migrate/create_tramway_user_users.rb'
+ migrations = %i[
+ create_tramway_user_users
+ add_phone_to_tramway_user_users
+ ]
+
+ migrations.each do |migration|
+ migration_template "#{migration}.rb", "db/migrate/#{migration}.rb"
+ end
end
end
end