Sha256: fc2b730fe45080f18771417986cc112af6fcbbae8baea3dbd609684e60fd53f1

Contents?: true

Size: 791 Bytes

Versions: 3

Compression:

Stored size: 791 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: 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

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
unidom-dictionary-0.3.2 db/migrate/20000701000000_create_unidom_dictionary_items.rb
unidom-dictionary-0.3.1 db/migrate/20000701000000_create_unidom_dictionary_items.rb
unidom-dictionary-0.3 db/migrate/20000701000000_create_unidom_dictionary_items.rb