diff options
author | José Valim <jose.valim@gmail.com> | 2012-03-21 00:28:38 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-03-21 00:28:38 -0700 |
commit | f829515ad9ca386bf1ae7f2dc342ee3d883ab3be (patch) | |
tree | cee3f52c4ccf0e9f7e0bc012968bfe3a53b63480 /activerecord/lib/rails/generators/active_record | |
parent | 275ee0dc7b836fb10aa8af1c0339e81539c1dec1 (diff) | |
parent | 57c6b4c0fe3998d9d35e0d6a924dc135b9f47d84 (diff) | |
download | rails-f829515ad9ca386bf1ae7f2dc342ee3d883ab3be.tar.gz rails-f829515ad9ca386bf1ae7f2dc342ee3d883ab3be.tar.bz2 rails-f829515ad9ca386bf1ae7f2dc342ee3d883ab3be.zip |
Merge pull request #5533 from mhfs/migration_blank_line_3_2
[3-2-stable] Remove blank line from generated migration
Diffstat (limited to 'activerecord/lib/rails/generators/active_record')
-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 d084a00ed7..aec5c429fe 100644 --- a/activerecord/lib/rails/generators/active_record/migration/templates/migration.rb +++ b/activerecord/lib/rails/generators/active_record/migration/templates/migration.rb @@ -5,7 +5,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration add_column :<%= table_name %>, :<%= attribute.name %>, :<%= attribute.type %><%= attribute.inject_options %> <%- if attribute.has_index? -%> add_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %> - <%- end %> + <%- end -%> <%- end -%> end <%- else -%> |