Sha256: 730327fda1381ba641088de325f35a871a2289c47971907cd9b61562bab32442
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
class CreateUnidomProducts < ActiveRecord::Migration def change create_table :unidom_products, id: :uuid do |t| t.string :name, null: false, default: '', limit: 200 t.string :abbreviation, null: false, default: '', limit: 8 t.string :measurement_unit, null: false, default: '', limit: 200 t.string :packing_norm, null: false, default: '', limit: 200 t.text :instruction t.text :description t.column :formset_code, 'char(4)', null: false, default: 'WARE' t.string :slug, null: false, default: nil, limit: 200 t.column :state, 'char(1)', null: false, default: Unidom::Common::STATE 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 add_index :unidom_products, :name add_index :unidom_products, :abbreviation add_index :unidom_products, :slug, unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-product-2.0 | db/migrate/20020201000000_create_unidom_products.rb |