Sha256: 16ab3b5b81ad7d2a1a0e23e08f86828eb8d9a2ad64297bdf1e5a3dcea2c15753

Contents?: true

Size: 334 Bytes

Versions: 15

Compression:

Stored size: 334 Bytes

Contents

class CreateRoleGroupUsers < ActiveRecord::Migration
  def change
    create_table :role_group_users do |t|
      t.belongs_to :role, index: true
      t.belongs_to :group_user, index: true

      t.timestamps null: false
    end
    add_foreign_key :authorizations, :group_users
    add_foreign_key :authorizations, :roles
  end
end

Version data entries

15 entries across 7 versions & 1 rubygems

Version Path
curupira-0.1.7 spec/dummy/db/migrate/20150305011941_create_role_group_users.rb
curupira-0.1.6 spec/dummy/db/migrate/20150305011941_create_role_group_users.rb
curupira-0.1.4 spec/dummy/db/migrate/20150305011941_create_role_group_users.rb
curupira-0.1.3 lib/generators/curupira/templates/db/migrate/create_role_group_users.rb
curupira-0.1.3 spec/tmp/db/migrate/20150323194119_create_role_group_users.rb
curupira-0.1.3 spec/dummy/db/migrate/20150305011941_create_role_group_users.rb
curupira-0.1.2 spec/dummy/db/migrate/20150305011941_create_role_group_users.rb
curupira-0.1.2 lib/generators/curupira/templates/db/migrate/create_role_group_users.rb
curupira-0.1.2 spec/tmp/db/migrate/20150320032239_create_role_group_users.rb
curupira-0.1.1 spec/tmp/db/migrate/20150319143755_create_role_group_users.rb
curupira-0.1.1 spec/dummy/db/migrate/20150305011941_create_role_group_users.rb
curupira-0.1.1 lib/generators/curupira/templates/db/migrate/create_role_group_users.rb
curupira-0.1.0 lib/generators/curupira/templates/db/migrate/create_role_group_users.rb
curupira-0.1.0 spec/tmp/db/migrate/20150318190312_create_role_group_users.rb
curupira-0.1.0 spec/dummy/db/migrate/20150305011941_create_role_group_users.rb