Sha256: ef027c89e1a8bfa3c7e9a405463543c7605ba1a4ef0d0a10e35141e710cac491

Contents?: true

Size: 701 Bytes

Versions: 1

Compression:

Stored size: 701 Bytes

Contents

class CreateUnidomPermissions < ActiveRecord::Migration

  def change

    create_table :unidom_permissions, id: :uuid do |t|

      t.string :name, null: false, default: '',  limit: 200
      t.string :path, null: true,  default: nil, limit: 200

      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

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-authorization-2.0 db/migrate/20000401000000_create_unidom_permissions.rb