Skip to content

Commit

Permalink
Merge pull request #38231 from sikachu/sikachu/remove-empty-line-remo…
Browse files Browse the repository at this point in the history
…ve-column

Remove an empty line from generated migration
  • Loading branch information
kamipo committed Jan 20, 2020
1 parent 5209d57 commit ec2e7d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Mi
<%- if attribute.has_index? -%>
remove_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %>
<%- end -%>
<%- if !attribute.virtual? %>
<%- if !attribute.virtual? -%>
remove_column :<%= table_name %>, :<%= attribute.name %>, :<%= attribute.type %><%= attribute.inject_options %>
<%- end -%>
<%- end -%>
Expand Down

0 comments on commit ec2e7d5

Please sign in to comment.