Class: CreateReleases

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

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
16
# File 'lib/branston/db/migrate/20091202105555_create_releases.rb', line 13

def self.down
  drop_table :releases
  remove_column :iterations, :release_id
end

.upObject



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

def self.up
  create_table :releases do |t|
    t.date :release_date
    t.text :notes

    t.timestamps
  end
  
  add_column :iterations, :release_id, :integer
end