Sha256: ae8e87e3005743a5d6f867caf54991d089c26172f62923fe73ee9b78c754ee78

Contents?: true

Size: 365 Bytes

Versions: 7

Compression:

Stored size: 365 Bytes

Contents

class CreateJoinTableAdvertisersBlurbs < ActiveRecord::Migration
  def change
    create_table :c80_news_tz_advs_blurbs, :id => false do |t|
      t.integer :r_advertiser_id, :null => false
      t.integer :r_blurb_id, :null => false
    end

    # Add table index
    add_index :c80_news_tz_advs_blurbs, [:r_advertiser_id, :r_blurb_id], :unique => true

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
c80_news_tz-0.1.1.26 db/migrate/20160309151313_create_join_table_advertisers_blurbs.rb
c80_news_tz-0.1.1.25 db/migrate/20160309151313_create_join_table_advertisers_blurbs.rb
c80_news_tz-0.1.1.24 db/migrate/20160309151313_create_join_table_advertisers_blurbs.rb
c80_news_tz-0.1.1.23 db/migrate/20160309151313_create_join_table_advertisers_blurbs.rb
c80_news_tz-0.1.1.22 db/migrate/20160309151313_create_join_table_advertisers_blurbs.rb
c80_news_tz-0.1.1.21 db/migrate/20160309151313_create_join_table_advertisers_blurbs.rb
c80_news_tz-0.1.1.19 db/migrate/20160309151313_create_join_table_advertisers_blurbs.rb