Add remove_column in money migration
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
class AddMoneyToUser < ActiveRecord::Migration
|
||||
def change
|
||||
def up
|
||||
add_column :users, :money, :float, :default=>0.0
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :users, :money
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user