Sha256: 1e856314ac32d0bccc0f4988295fd60ae50599537cc377e8df0c76c2c7a450b2

Contents?: true

Size: 323 Bytes

Versions: 21

Compression:

Stored size: 323 Bytes

Contents

class CreateRoleGroups < ActiveRecord::Migration
	def change
		create_table :role_groups do |t|
      t.belongs_to :role, index: true
  		t.belongs_to :group, index: true
  		t.boolean :active

  		t.timestamps null: false
  	end
  	add_foreign_key :role_groups, :roles
  	add_foreign_key :role_groups, :groups  
  end
end

Version data entries

21 entries across 7 versions & 1 rubygems

Version Path
curupira-0.1.0 lib/generators/curupira/templates/db/migrate/create_role_groups.rb