Sha256: 1d0092c8b3e24dc86728b1f683693419947452611d85d526f89245a10b231bc8
Contents?: true
Size: 788 Bytes
Versions: 1
Compression:
Stored size: 788 Bytes
Contents
class CreateUnidomShops < ActiveRecord::Migration def change create_table :unidom_shops, 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: 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_shops, :name add_index :unidom_shops, :slug, unique: true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-party-2.0 | db/migrate/20010103000000_create_unidom_shops.rb |