global

def self.down

def self.down
 attributes.reverse.each do |attribute| -%>
<%- if migration_action -%>
  <%= migration_action == 'add' ? 'remove' : 'add' %>_column :<%= table_name %>, :<%= attribute.name %><% if migration_action == 'remove' %>, :<%= attribute.type %><% end %>
<%- end -%>
- end -%>
end