Sha256: 8d22ebc01f5136eab8370a9c8a9e91487a47da3557e2e1bc683c118bbfdcbeee

Contents?: true

Size: 346 Bytes

Versions: 10

Compression:

Stored size: 346 Bytes

Contents

class CreateJoinTableRubricsSpots < ActiveRecord::Migration
  def change
    create_table :c80_news_tz_rubrics_spots, :id => false do |t|
      t.integer :rubric_id, :null => false
      t.integer :spot_id, :null => false
    end

    # Add table index
    add_index :c80_news_tz_rubrics_spots, [:rubric_id, :spot_id], :unique => true

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
c80_news_tz-0.1.1.26 db/migrate/20160307075858_create_join_table_rubrics_spots.rb
c80_news_tz-0.1.1.25 db/migrate/20160307075858_create_join_table_rubrics_spots.rb
c80_news_tz-0.1.1.24 db/migrate/20160307075858_create_join_table_rubrics_spots.rb
c80_news_tz-0.1.1.23 db/migrate/20160307075858_create_join_table_rubrics_spots.rb
c80_news_tz-0.1.1.22 db/migrate/20160307075858_create_join_table_rubrics_spots.rb
c80_news_tz-0.1.1.21 db/migrate/20160307075858_create_join_table_rubrics_spots.rb
c80_news_tz-0.1.1.19 db/migrate/20160307075858_create_join_table_rubrics_spots.rb
c80_news_tz-0.1.1.18 db/migrate/20160307075858_create_join_table_rubrics_spots.rb
c80_news_tz-0.1.1.17 db/migrate/20160307075858_create_join_table_rubrics_spots.rb
c80_news_tz-0.1.1.16 db/migrate/20160307075858_create_join_table_rubrics_spots.rb