Sha256: 5ff27e536ed39bf41ab9152c75b7540a5f17e4d2dbdf9cfe1aaac5309daa0fed

Contents?: true

Size: 213 Bytes

Versions: 6

Compression:

Stored size: 213 Bytes

Contents

class CreateTenantsUsersJoinTable < ActiveRecord::Migration
  def change
    create_join_table :tenants, :users do |t|
      t.index [:tenant_id, :user_id]
      # t.index [:user_id, :tenant_id]
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
milia-1.2.1 test/db/migrate/20111012050600_create_tenants_users_join_table.rb
milia-1.2.0 test/db/migrate/20111012050600_create_tenants_users_join_table.rb
milia-1.1.1 test/db/migrate/20111012050600_create_tenants_users_join_table.rb
milia-1.0.1 test/db/migrate/20111012050600_create_tenants_users_join_table.rb
milia-1.1.0 test/db/migrate/20111012050600_create_tenants_users_join_table.rb
milia-1.0.0 test/db/migrate/20111012050600_create_tenants_users_join_table.rb