Class: CreateStories

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

Class Method Summary collapse

Class Method Details

.downObject



12
13
14
# File 'lib/branston/db/migrate/20091127122422_create_stories.rb', line 12

def self.down
  drop_table :stories
end

.upObject



2
3
4
5
6
7
8
9
10
# File 'lib/branston/db/migrate/20091127122422_create_stories.rb', line 2

def self.up
  create_table :stories do |t|
    t.text :description
    t.integer :points
    t.integer :iteration_id

    t.timestamps
  end
end