Class: AddStatusToStory

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/branston/db/migrate/20091223100903_add_status_to_story.rb

Class Method Summary collapse

Class Method Details

.downObject



7
8
9
10
# File 'lib/branston/db/migrate/20091223100903_add_status_to_story.rb', line 7

def self.down
  remove_column :stories, :status
  remove_column :stories, :completed_date
end

.upObject



2
3
4
5
# File 'lib/branston/db/migrate/20091223100903_add_status_to_story.rb', line 2

def self.up
  add_column :stories, :status, :string, :limit => 10
  add_column :stories, :completed_date, :date
end