Sha256: 59a517b0d3cc5bba333c7ed2dfb208898deac0bdabd2eb016ea3e16be8400d1d

Contents?: true

Size: 354 Bytes

Versions: 21

Compression:

Stored size: 354 Bytes

Contents

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

    # Add table index
    add_index :ems_news_tags, [:news_id, :tag_id], :unique => true
  end

  def down
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
ems-0.1.12 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.11 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.10 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.9 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.8 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.7 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.6 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.5 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.4 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.3 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.2 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.1 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.1.0 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.0.9 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.0.8 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.0.7 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.0.6 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.0.5 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.0.4 db/migrate/20120403151755_create_ems_news_tags.rb
ems-0.0.3 db/migrate/20120403151755_create_ems_news_tags.rb