impress/db/migrate/20101110213044_add_name_and_starred_to_outfits.rb

12 lines
312 B
Ruby
Raw Normal View History

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