1
0
Fork 0
forked from OpenNeo/impress
impress/db/migrate/20101110213044_add_name_and_starred_to_outfits.rb

11 lines
312 B
Ruby

class AddNameAndStarredToOutfits < ActiveRecord::Migration
def self.up
add_column :outfits, :name, :string, :null => false
add_column :outfits, :starred, :boolean, :default => false, :null => false
end
def self.down
remove_column :outfits, :starred
remove_column :outfits, :name
end
end