diff options
author | Marcelo Silveira <marcelo@mhfs.com.br> | 2012-03-20 22:06:42 -0300 |
---|---|---|
committer | Marcelo Silveira <marcelo@mhfs.com.br> | 2012-03-20 22:07:09 -0300 |
commit | 57c6b4c0fe3998d9d35e0d6a924dc135b9f47d84 (patch) | |
tree | cee3f52c4ccf0e9f7e0bc012968bfe3a53b63480 /activerecord/lib | |
parent | 275ee0dc7b836fb10aa8af1c0339e81539c1dec1 (diff) | |
download | rails-57c6b4c0fe3998d9d35e0d6a924dc135b9f47d84.tar.gz rails-57c6b4c0fe3998d9d35e0d6a924dc135b9f47d84.tar.bz2 rails-57c6b4c0fe3998d9d35e0d6a924dc135b9f47d84.zip |
[3-2-stable] Remove blank line from generated migration
Diffstat (limited to 'activerecord/lib')
-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 -%> |