Sha256: bf1dd208b7147c84894e99182e6ea6f8f4cf27c963cda57e44717fadd4f53b7e

Contents?: true

Size: 326 Bytes

Versions: 21

Compression:

Stored size: 326 Bytes

Contents

class CreateReleases < ActiveRecord::Migration
  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

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
branston-0.6.6 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.6.5 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.6.4 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.6.3 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.6.2 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.6.1 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.6.0 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.5.2 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.5.1 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.5.0 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.4.6 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.4.5 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.4.4 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.4.3 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.4.2 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.4.1 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.4.0 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.3.6 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.3.4 lib/branston/db/migrate/20091202105555_create_releases.rb
branston-0.3.3 lib/branston/db/migrate/20091202105555_create_releases.rb