impress/db/migrate/20110722180616_add_owned_to_closet_hangers.rb

11 lines
234 B
Ruby
Raw Normal View History

class AddOwnedToClosetHangers < ActiveRecord::Migration[3.2]
def self.up
add_column :closet_hangers, :owned, :boolean, :null => false, :default => true
end
def self.down
remove_column :closet_hangers, :owned
end
end