1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

fix add_column to new style

This commit is contained in:
long-long-float 2016-03-10 13:53:48 +09:00
parent ada46aaee6
commit e03af047c4

View file

@ -1,9 +1,5 @@
class AddAasm<%= column_name.camelize %>To<%= table_name.camelize %> < ActiveRecord::Migration
def self.up
class Add<%= column_name.camelize %>To<%= table_name.camelize %> < ActiveRecord::Migration
def change
add_column :<%= table_name %>, :<%= column_name %>, :string
end
def self.down
remove_column :<%= table_name %>, :<%= column_name %>
end
end