Sha256: 5930c8560651f0b8f43f92ed7c44e52c9d9413d74ecf8e54a0198fdf60ce54db
Contents?: true
Size: 1.59 KB
Versions: 1
Compression:
Stored size: 1.59 KB
Contents
class CreateUnidomChinaIdentityCards < ActiveRecord::Migration def change create_table :unidom_china_identity_cards, id: :uuid do |t| t.string :name, null: false, default: '', limit: 16 t.date :birth_date, null: false, default: nil t.string :address, null: false, default: '', limit: 200 t.column :gender_code, 'char(1)', null: false, default: '0' t.column :ethnicity_code, 'char(2)', null: false, default: 'HA' t.column :identification_number, 'char(18)', null: false, default: nil # t.column :encrypted_identification_number, 'char(45)', null: false, default: nil # t.column :encryption_pepper, 'char(21)', null: false, default: nil t.string :issuing_authority_name, null: false, default: '', limit: 200 t.date :validity_from_date, null: false, default: '2005-01-01' t.date :validity_thru_date, null: false, default: '2025-01-01' # t.string :slug, null: false, default: nil, limit: 200 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_china_identity_cards, :identification_number # add_index :unidom_china_identity_cards, :encrypted_identification_number # add_index :unidom_china_identity_cards, :slug, unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-certificate-0.1 | db/migrate/20010201000000_create_unidom_china_identity_cards.rb |