Sha256: 39c92e8aaecc37b33e7b045cde152d74a8aa90b5c4ff8dda8d46f89bfb3d8fa4

Contents?: true

Size: 356 Bytes

Versions: 11

Compression:

Stored size: 356 Bytes

Contents

class CreateJoinTableFactsLocations < ActiveRecord::Migration
  def change
    create_table :c80_news_tz_facts_locations, :id => false do |t|
      t.integer :fact_id, :null => false
      t.integer :location_id, :null => false
    end

    # Add table index
    add_index :c80_news_tz_facts_locations, [:fact_id, :location_id], :unique => true

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
c80_news_tz-0.1.1.26 db/migrate/20160304145555_create_join_table_facts_locations.rb
c80_news_tz-0.1.1.25 db/migrate/20160304145555_create_join_table_facts_locations.rb
c80_news_tz-0.1.1.24 db/migrate/20160304145555_create_join_table_facts_locations.rb
c80_news_tz-0.1.1.23 db/migrate/20160304145555_create_join_table_facts_locations.rb
c80_news_tz-0.1.1.22 db/migrate/20160304145555_create_join_table_facts_locations.rb
c80_news_tz-0.1.1.21 db/migrate/20160304145555_create_join_table_facts_locations.rb
c80_news_tz-0.1.1.19 db/migrate/20160304145555_create_join_table_facts_locations.rb
c80_news_tz-0.1.1.18 db/migrate/20160304145555_create_join_table_facts_locations.rb
c80_news_tz-0.1.1.17 db/migrate/20160304145555_create_join_table_facts_locations.rb
c80_news_tz-0.1.1.16 db/migrate/20160304145555_create_join_table_facts_locations.rb
c80_news_tz-0.1.1.15 db/migrate/20160304145555_create_join_table_facts_locations.rb