Sha256: ab3f9cb2e4954da7bbf94feff50f55fb96cc4cf0c22f8282e64ad887da46726f

Contents?: true

Size: 813 Bytes

Versions: 1

Compression:

Stored size: 813 Bytes

Contents

class CreateUnidomDictionaryItems < ActiveRecord::Migration

  def change

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

      t.column :dictionary_code, 'char(4)', null: false, default: 'ZZZZ'
      t.string :code,                       null: true,  default: nil, limit: 64

      t.string :value, null: false, default: '', limit: 200

      t.text :description
      t.text :instruction

      t.column   :state, 'char(1)', null: false, default: 'C'
      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-dictionary-0.3.3 db/migrate/20000701000000_create_unidom_dictionary_items.rb