Sha256: eea665529b2f60cc1535cd544c18121c97c4d54e8038b3fe347dc4a33bb73b8b

Contents?: true

Size: 254 Bytes

Versions: 10

Compression:

Stored size: 254 Bytes

Contents

class CreateRolesUsers < ActiveRecord::Migration

  def change
    create_table :roles_users, id: false do |t|
      t.references :role, null: false
      t.references :user, null: false
    end
    add_index :roles_users, [:user_id, :role_id]
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
georgia-0.8.0 db/migrate/014_create_roles_users.rb
georgia-0.7.8 db/migrate/014_create_roles_users.rb
georgia-0.7.7 db/migrate/014_create_roles_users.rb
georgia-0.7.6 db/migrate/014_create_roles_users.rb
georgia-0.7.5 db/migrate/014_create_roles_users.rb
georgia-0.7.4 db/migrate/014_create_roles_users.rb
georgia-0.7.3 db/migrate/014_create_roles_users.rb
georgia-0.7.2 db/migrate/014_create_roles_users.rb
georgia-0.7.1 db/migrate/014_create_roles_users.rb
georgia-0.7.0 db/migrate/014_create_roles_users.rb