Sha256: 44fb69b0610e5ee1cacf5b596f31037e3c28d15eb38699bb4f6bbc0acc859389

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

class C80SocialNetworksAddJoinTableLinksTypes < ActiveRecord::Migration
  def change
    create_table :c80_social_networks_links_types, :id => false do |t|
      t.integer :link_id, :null => false
      t.integer :type_id, :null => false
    end

    add_index :c80_social_networks_links_types, [:type_id, :link_id], :unique => true, :name => 'my_index'

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
c80_social_networks-0.1.0.2 db/migrate/20161003104949_c80_social_networks_add_join_table_links_types.rb
c80_social_networks-0.1.0.1 db/migrate/20161003104949_c80_social_networks_add_join_table_links_types.rb