Sha256: 1f97d9c0cb7edc97fa0f5429c746dcd106cf53fd0ff432e25be5f0a23ba0043a

Contents?: true

Size: 364 Bytes

Versions: 13

Compression:

Stored size: 364 Bytes

Contents

class CreateJoinTableCompaniesNotices < ActiveRecord::Migration
  def change
    create_table :c80_news_tz_companies_notices, :id => false do |t|
      t.integer :company_id, :null => false
      t.integer :notice_id, :null => false
    end

    # Add table index
    add_index :c80_news_tz_companies_notices, [:notice_id, :company_id], :unique => true

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
c80_news_tz-0.1.1.26 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.25 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.24 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.23 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.22 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.21 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.19 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.18 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.17 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.16 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.15 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.1 db/migrate/20160227113412_create_join_table_companies_notices.rb
c80_news_tz-0.1.1.0 db/migrate/20160227113412_create_join_table_companies_notices.rb