Sha256: 3ed983692bee5e0c24d18ddacce1ae853e9c8454c928298de0da5863a566b8b4

Contents?: true

Size: 338 Bytes

Versions: 6

Compression:

Stored size: 338 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 :role_group_users, :group_users
    add_foreign_key :role_group_users, :roles
  end
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
curupira-0.1.7 lib/generators/curupira/templates/db/migrate/create_role_group_users.rb
curupira-0.1.7 spec/tmp/db/migrate/20170509173929_create_role_group_users.rb
curupira-0.1.6 lib/generators/curupira/templates/db/migrate/create_role_group_users.rb
curupira-0.1.6 spec/tmp/db/migrate/20170509170658_create_role_group_users.rb
curupira-0.1.4 lib/generators/curupira/templates/db/migrate/create_role_group_users.rb
curupira-0.1.4 spec/tmp/db/migrate/20160930024822_create_role_group_users.rb