Open-Source-Access-Control-.../db/migrate/20121014122548_remove_card_from_users.rb
2014-02-09 00:56:48 -07:00

14 lines
345 B
Ruby
Executable File

class RemoveCardFromUsers < ActiveRecord::Migration
def up
remove_column :users, :card_id
remove_column :users, :card_number
remove_column :users, :card_permissions
end
def down
add_column :users, :card_id, :integer
add_column :users, :card_number, :string
add_column :users, :card_permissions, :integer
end
end