Class: AddAuthorIdToStory

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

Class Method Summary collapse

Class Method Details

.downObject



6
7
8
# File 'lib/branston/db/migrate/20091127173744_add_author_id_to_story.rb', line 6

def self.down
  remove_column :stories, :author_id
end

.upObject



2
3
4
# File 'lib/branston/db/migrate/20091127173744_add_author_id_to_story.rb', line 2

def self.up
  add_column :stories, :author_id, :integer, :nil => false
end