Sha256: 2fdf964ff284e0e5702a2f24713b89dbe08e413fd08e297ab82a6095d79f8ec8

Contents?: true

Size: 871 Bytes

Versions: 1

Compression:

Stored size: 871 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: 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_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-2.0 db/migrate/20010102000000_create_unidom_people.rb