Class: CreateReleases
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateReleases
- Defined in:
- lib/branston/db/migrate/20091202105555_create_releases.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
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 |
.up ⇒ Object
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. end add_column :iterations, :release_id, :integer end |