Sha256: 58afaa393e4e5c35ab8a23e09829152ddb502a2d2f7bf00f4e54d8219bbcfe15

Contents?: true

Size: 303 Bytes

Versions: 10

Compression:

Stored size: 303 Bytes

Contents

class LinkTicketsAndReleases < ActiveRecord::Migration
  def up
    create_table :releases_tickets, :id => false do |t|
      t.references :release, :ticket
    end

    add_index :releases_tickets, [:release_id, :ticket_id], :unique => true
  end

  def down
    drop_table :releases_tickets
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
houston-core-0.9.2 db/migrate/20120504143615_link_tickets_and_releases.rb
houston-core-0.9.1 db/migrate/20120504143615_link_tickets_and_releases.rb
houston-core-0.9.0 db/migrate/20120504143615_link_tickets_and_releases.rb
houston-core-0.9.0.rc1 db/migrate/20120504143615_link_tickets_and_releases.rb
houston-core-0.8.4 db/migrate/20120504143615_link_tickets_and_releases.rb
houston-core-0.8.3 db/migrate/20120504143615_link_tickets_and_releases.rb
houston-core-0.8.2 db/migrate/20120504143615_link_tickets_and_releases.rb
houston-core-0.8.1 db/migrate/20120504143615_link_tickets_and_releases.rb
houston-core-0.8.0 db/migrate/20120504143615_link_tickets_and_releases.rb
houston-core-0.8.0.pre2 db/migrate/20120504143615_link_tickets_and_releases.rb