Sha256: 2c3492100a0667c5bd5c04e71873171b78c6ea7b80145191feb0cbbfb4f59ecb
Contents?: true
Size: 974 Bytes
Versions: 8
Compression:
Stored size: 974 Bytes
Contents
class CreateUnidomAuthorizings < ActiveRecord::Migration def change create_table :unidom_authorizings, id: :uuid do |t| t.references :authorizer, type: :uuid, null: false, polymorphic: { type: :uuid, null: false } t.references :authorized, type: :uuid, null: false, polymorphic: { type: :uuid, null: false } t.references :permission, type: :uuid, null: false t.text :description t.column :state, 'char(1)', null: false, default: 'C' t.datetime :opened_at, null: false, default: ::Time.utc(1970) t.datetime :closed_at, null: false, default: ::Time.utc(3000) 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
8 entries across 8 versions & 1 rubygems