Sha256: d9ccf30db8195b47a681b6d403d8c53b25c3208fa6923390cb9b7654167f6989
Contents?: true
Size: 768 Bytes
Versions: 31
Compression:
Stored size: 768 Bytes
Contents
class CreateUnidomCompanies < ActiveRecord::Migration def change create_table :unidom_companies, id: :uuid do |t| t.string :name, null: false, default: '', limit: 200 t.text :description 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_companies, :name add_index :unidom_companies, :slug, unique: true end end
Version data entries
31 entries across 31 versions & 1 rubygems