Class: CreateIterations

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

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/branston/db/migrate/20091127120627_create_iterations.rb', line 13

def self.down
  drop_table :iterations
end

.upObject



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

def self.up
  create_table :iterations do |t|
    t.integer :velocity
    t.string :name
    t.datetime :start_date
    t.datetime :end_date

    t.timestamps
  end
end