Sha256: 3b422388c5b62eb9e452943736441041ae79b2a573667639ebdeaed1821a90ed
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
class CreateUnidomShoppingCarts < ActiveRecord::Migration def change create_table :unidom_shopping_carts, id: :uuid do |t| t.references :shopper, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :shop, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.column :state, 'char(1)', null: false, default: 'C' 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_shopping_carts, :shopper_id add_index :unidom_shopping_carts, :shop_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-shopping-2.0 | db/migrate/20020501000000_create_unidom_shopping_carts.rb |