Sha256: cc19c17c5e12f06c053768ee4afe74924e48a03de7edd3023ec0c4e729588d2b
Contents?: true
Size: 388 Bytes
Versions: 2
Compression:
Stored size: 388 Bytes
Contents
class CreatePermissionPolicies < ActiveRecord::Migration[5.2] def up if !table_exists?(:permission_policies) create_table :permission_policies do |t| t.belongs_to :resource, polymorphic: true, index: false t.string :policy_type t.timestamps end add_index :permission_policies, [:resource_type, :resource_id], unique: true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
recurso-0.6.1 | db/migrate/create_permission_policies.rb |
recurso-0.5.3 | db/migrate/create_permission_policies.rb |