Sha256: 38e6dabab1d5dea89e6e81bfde696687cf1526d21d173709118b98d4439384be
Contents?: true
Size: 855 Bytes
Versions: 25
Compression:
Stored size: 855 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: ::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_shopping_carts, :shopper_id add_index :unidom_shopping_carts, :shop_id end end
Version data entries
25 entries across 25 versions & 1 rubygems