mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
0ac7b8c843
Currently, if you run `rails g migration remove_column_from_models`, there is an empty line before `remove_column` line because we forgot to use `-%>` in the template: $ bin/rails g migration remove_title_from_posts title:string invoke active_record create db/migrate/20200114061235_remove_title_from_posts.rb $ cat db/migrate/20200114061235_remove_title_from_posts.rb class RemoveTitleFromPosts < ActiveRecord::Migration[6.1] def change remove_column :posts, :title, :string end end This commit adds the missing `-` in front of `-%>` to make it removes the empty line. |
||
---|---|---|
.. | ||
active_record | ||
active_record.rb |