Sha256: 611048617c16aabd6a4c91a71b1d3b1dcded3a9bf5efcaaf7711fbf52568f731

Contents?: true

Size: 392 Bytes

Versions: 21

Compression:

Stored size: 392 Bytes

Contents

class CreateEmsArticlesChannels < ActiveRecord::Migration
  def up
    # Create the association table
    create_table :ems_articles_channels, :id => false do |t|
      t.integer :article_id, :null => false
      t.integer :channel_id, :null => false
    end

    # Add table index
    add_index :ems_articles_channels, [:article_id, :channel_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/20120327141505_create_ems_articles_channels.rb