Sha256: a6465e78fb12977d62301e49b51a649332447be7d521fe3b72a4bd8fc9cbd06a
Contents?: true
Size: 384 Bytes
Versions: 1
Compression:
Stored size: 384 Bytes
Contents
class CreatePermissionsRoles < ActiveRecord::Migration def self.up create_table :permissions_roles, :id => false do |t| t.column :permission_id, :integer, :null => false t.column :role_id, :integer, :null => false end add_index :permissions_roles, [:permission_id, :role_id], :unique => true end def self.down drop_table :permissions_roles end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
has_roles-0.0.2 | db/migrate/004_create_permissions_roles.rb |