diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-03-21 18:03:17 -0700 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-03-21 18:03:17 -0700 |
commit | 64249223ebb2b51814d8764c498b14a12d072b83 (patch) | |
tree | 43d0b7c9e9bcb497baad522ce7d4fb55120e131c /activerecord/lib/rails/generators/active_record/migration/templates/migration.rb | |
parent | b6c128d6d07e806ae9d4d4f41c448c9cb3fbd14f (diff) | |
parent | 86d1dfb821dcc31897a0899e9b0933852d33cac3 (diff) | |
download | rails-64249223ebb2b51814d8764c498b14a12d072b83.tar.gz rails-64249223ebb2b51814d8764c498b14a12d072b83.tar.bz2 rails-64249223ebb2b51814d8764c498b14a12d072b83.zip |
Merge pull request #5540 from mhfs/another_blank_line_fix
Avoid another blank line in generated migration and remove assertion as per @spastorino request
Diffstat (limited to 'activerecord/lib/rails/generators/active_record/migration/templates/migration.rb')
-rw-r--r-- | activerecord/lib/rails/generators/active_record/migration/templates/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/rails/generators/active_record/migration/templates/migration.rb b/activerecord/lib/rails/generators/active_record/migration/templates/migration.rb index 85f0d43b77..9ca63a209e 100644 --- a/activerecord/lib/rails/generators/active_record/migration/templates/migration.rb +++ b/activerecord/lib/rails/generators/active_record/migration/templates/migration.rb @@ -26,7 +26,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration <%= migration_action == 'add' ? 'remove' : 'add' %>_column :<%= table_name %>, :<%= attribute.name %><% if migration_action == 'remove' %>, :<%= attribute.type %><%= attribute.inject_options %><% end %> <%- if attribute.has_index? && migration_action == 'remove' -%> add_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %> - <%- end %> + <%- end -%> <%- end -%> <%- end -%> end |