diff --git a/lib/generators/active_record/templates/migration_existing.rb b/lib/generators/active_record/templates/migration_existing.rb index 491e1f9..0be1435 100644 --- a/lib/generators/active_record/templates/migration_existing.rb +++ b/lib/generators/active_record/templates/migration_existing.rb @@ -1,4 +1,4 @@ -class Add<%= column_name.camelize %>To<%= table_name.camelize %> < ActiveRecord::Migration +class Add<%= column_name.camelize %>To<%= table_name.camelize %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] def change add_column :<%= table_name %>, :<%= column_name %>, :string end