fix add_column to new style
This commit is contained in:
parent
ada46aaee6
commit
e03af047c4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue