impress/db/migrate/20101110213044_add_name_and_starred_to_outfits.rb

12 lines
317 B
Ruby
Raw Permalink Normal View History

class AddNameAndStarredToOutfits < ActiveRecord::Migration[4.2]
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