1
0
Fork 0
forked from OpenNeo/impress
impress/db/migrate/20110730174148_add_closet_hangers_visibility_to_users.rb

13 lines
433 B
Ruby
Raw Permalink Normal View History

class AddClosetHangersVisibilityToUsers < ActiveRecord::Migration[4.2]
2011-07-30 16:45:28 -07:00
def self.up
add_column :users, :owned_closet_hangers_visibility, :integer, :null => false, :default => 1
add_column :users, :wanted_closet_hangers_visibility, :integer, :null => false, :default => 1
end
def self.down
remove_column :users, :wanted_closet_hangers_visibility
remove_column :users, :owned_closet_hangers_visibility
end
end