Sha256: 89b0ee0d8903a6c024ff6dd5aba18647b7322ca3fec11e0b70a5bccad7b23f38

Contents?: true

Size: 355 Bytes

Versions: 7

Compression:

Stored size: 355 Bytes

Contents

class CreateJoinTableBlurbsRubrics < ActiveRecord::Migration
  def change
    create_table :c80_news_tz_blurbs_rubrics, :id => false do |t|
      t.integer :r_blurb_id, :null => false
      t.integer :rubric_id, :null => false
    end

    # Add table index
    add_index :c80_news_tz_blurbs_rubrics, [:r_blurb_id, :rubric_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/20160309150808_create_join_table_blurbs_rubrics.rb
c80_news_tz-0.1.1.25 db/migrate/20160309150808_create_join_table_blurbs_rubrics.rb
c80_news_tz-0.1.1.24 db/migrate/20160309150808_create_join_table_blurbs_rubrics.rb
c80_news_tz-0.1.1.23 db/migrate/20160309150808_create_join_table_blurbs_rubrics.rb
c80_news_tz-0.1.1.22 db/migrate/20160309150808_create_join_table_blurbs_rubrics.rb
c80_news_tz-0.1.1.21 db/migrate/20160309150808_create_join_table_blurbs_rubrics.rb
c80_news_tz-0.1.1.19 db/migrate/20160309150808_create_join_table_blurbs_rubrics.rb