Sha256: b3e774565b3a72a782f2e213785b99afae407c0961e90f43908ed8ed29097eeb
Contents?: true
Size: 460 Bytes
Versions: 2
Compression:
Stored size: 460 Bytes
Contents
class AddUserPolicies < ActiveRecord::Migration[5.0] def change create_table :cavy_groups do |t| t.string :name t.boolean :is_super_admin t.timestamps end add_index :cavy_groups, :name, unique: true create_table :cavy_policies do |t| t.string :name end add_index :cavy_policies, :name, unique: true create_join_table :cavy_users, :cavy_groups create_join_table :cavy_groups, :cavy_policies end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cavy-0.1.0.beta2 | db/migrate/20170206144114_add_user_policies.rb |
cavy-0.1.0.beta1 | db/migrate/20170206144114_add_user_policies.rb |