Sha256: 875a45d2986a1910111e3e24e1c82b4651c136b07f3572054a0ab3b4ac353fe7
Contents?: true
Size: 1.03 KB
Versions: 10
Compression:
Stored size: 1.03 KB
Contents
class CreateUnidomStandards < ActiveRecord::Migration def change create_table :unidom_standards, id: :uuid do |t| t.string :name, null: false, default: '', limit: 200 t.string :number, null: false, default: '', limit: 200 t.string :ics_code, null: true, default: nil, limit: 9 t.text :scope_definition t.text :corrigenda t.text :instruction t.text :description t.date :published_on, null: false, default: '3000-01-01' t.date :applied_on, null: false, default: '3000-01-01' t.date :obsoleted_on, null: false, default: '3000-01-01' 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_standards, :number, unique: true end end
Version data entries
10 entries across 10 versions & 1 rubygems