Sha256: 90fc43a606ee8e76dacf89ece877c907fa0ee85fa69bc9588c97b323fff6280c

Contents?: true

Size: 777 Bytes

Versions: 10

Compression:

Stored size: 777 Bytes

Contents

class CreateUnidomLots < ActiveRecord::Migration

  def change

    create_table :unidom_lots, id: :uuid do |t|

      t.string  :identification_number, null: false, default: '', limit: 200
      t.decimal :quantity,              null: false, default: 0.0, precision: 10, scale: 6

      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

    add_index :unidom_lots, :identification_number

  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
unidom-inventory-0.8 db/migrate/20020911000000_create_unidom_lots.rb
unidom-inventory-0.7.5 db/migrate/20020911000000_create_unidom_lots.rb
unidom-inventory-0.7.4 db/migrate/20020911000000_create_unidom_lots.rb
unidom-inventory-0.7.3 db/migrate/20020911000000_create_unidom_lots.rb
unidom-inventory-0.7.2 db/migrate/20020911000000_create_unidom_lots.rb
unidom-inventory-0.7.1 db/migrate/20020911000000_create_unidom_lots.rb
unidom-inventory-0.7 db/migrate/20020911000000_create_unidom_lots.rb
unidom-inventory-0.6 db/migrate/20020911000000_create_unidom_lots.rb
unidom-inventory-0.5 db/migrate/20020911000000_create_unidom_lots.rb
unidom-inventory-0.4 db/migrate/20020911000000_create_unidom_lots.rb