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
1 changed files with 2 additions and 6 deletions

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