Sha256: fda0b73c2b82f8d3391433434bf71d33d5bdd0c8bb05c76b5ef981053b5c6f61

Contents?: true

Size: 853 Bytes

Versions: 1

Compression:

Stored size: 853 Bytes

Contents

class CreateUnidomPeople < ActiveRecord::Migration

  def change

    create_table :unidom_people, 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: '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_people, :name
    add_index :unidom_people, :slug, unique: true
    # add_index :unidom_people, :notation, using: 'gin ((notation -> 'tags'))'

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-party-1.9.8 db/migrate/20010102000000_create_unidom_people.rb