Sha256: 5e34c0ae4c6e3f49f2b111308d590757be8165f025a355bceaa66ca89797d8af
Contents?: true
Size: 1008 Bytes
Versions: 1
Compression:
Stored size: 1008 Bytes
Contents
class CreateUnidomAuthorizings < ActiveRecord::Migration def change create_table :unidom_authorizings, id: :uuid do |t| t.references :authorizer, type: :uuid, null: false, polymorphic: { null: false, limit: 200 } t.references :authorized, type: :uuid, null: false, polymorphic: { null: false, limit: 200 } t.references :permission, type: :uuid, null: false t.text :description t.column :state, 'char(1)', null: false, default: Unidom::Common::STATE t.datetime :opened_at, null: false, default: Unidom::Common::OPENED_AT t.datetime :closed_at, null: false, default: Unidom::Common::CLOSED_AT t.boolean :defunct, null: false, default: false t.jsonb :notation, null: false, default: {} t.timestamps null: false end add_index :unidom_authorizings, :permission_id add_index :unidom_authorizings, :authorizer_id add_index :unidom_authorizings, :authorized_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-authorization-2.0 | db/migrate/20000402000000_create_unidom_authorizings.rb |