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.7 lib/generators/curupira/templates/db/migrate/create_role_groups.rb
curupira-0.1.7 spec/tmp/db/migrate/20170509173930_create_role_groups.rb
curupira-0.1.7 spec/dummy/db/migrate/20150305011948_create_role_groups.rb
curupira-0.1.6 spec/tmp/db/migrate/20170509170659_create_role_groups.rb
curupira-0.1.6 spec/dummy/db/migrate/20150305011948_create_role_groups.rb
curupira-0.1.6 lib/generators/curupira/templates/db/migrate/create_role_groups.rb
curupira-0.1.4 spec/dummy/db/migrate/20150305011948_create_role_groups.rb
curupira-0.1.4 lib/generators/curupira/templates/db/migrate/create_role_groups.rb
curupira-0.1.4 spec/tmp/db/migrate/20160930024823_create_role_groups.rb
curupira-0.1.3 spec/dummy/db/migrate/20150305011948_create_role_groups.rb
curupira-0.1.3 lib/generators/curupira/templates/db/migrate/create_role_groups.rb
curupira-0.1.3 spec/tmp/db/migrate/20150323194126_create_role_groups.rb
curupira-0.1.2 spec/tmp/db/migrate/20150320032246_create_role_groups.rb
curupira-0.1.2 spec/dummy/db/migrate/20150305011948_create_role_groups.rb
curupira-0.1.2 lib/generators/curupira/templates/db/migrate/create_role_groups.rb
curupira-0.1.1 lib/generators/curupira/templates/db/migrate/create_role_groups.rb
curupira-0.1.1 spec/tmp/db/migrate/20150319143762_create_role_groups.rb
curupira-0.1.1 spec/dummy/db/migrate/20150305011948_create_role_groups.rb
curupira-0.1.0 spec/dummy/db/migrate/20150305011948_create_role_groups.rb
curupira-0.1.0 spec/tmp/db/migrate/20150318190319_create_role_groups.rb