Sha256: 4dfa52d1fce5e7d08f3c94eab667368b6e921c0034f54f92d2d40e73b9fc5337

Contents?: true

Size: 367 Bytes

Versions: 21

Compression:

Stored size: 367 Bytes

Contents

class CreateEmsReportsTags < ActiveRecord::Migration
  def up
    # Create the association table
    create_table :ems_reports_tags, :id => false do |t|
      t.integer :report_id, :null => false
      t.integer :tag_id, :null => false
    end

    # Add table index
    add_index :ems_reports_tags, [:report_id, :tag_id], :unique => true
  end

  def down
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ems-0.0.2 db/migrate/20120403161816_create_ems_reports_tags.rb