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:
parent
ada46aaee6
commit
e03af047c4
1 changed files with 2 additions and 6 deletions
|
@ -1,9 +1,5 @@
|
||||||
class AddAasm<%= column_name.camelize %>To<%= table_name.camelize %> < ActiveRecord::Migration
|
class Add<%= column_name.camelize %>To<%= table_name.camelize %> < ActiveRecord::Migration
|
||||||
def self.up
|
def change
|
||||||
add_column :<%= table_name %>, :<%= column_name %>, :string
|
add_column :<%= table_name %>, :<%= column_name %>, :string
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
|
||||||
remove_column :<%= table_name %>, :<%= column_name %>
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue