Sha256: cdd4fa7cfb03514ed3b9f5b9558bc79dd01252e3b8c7fb3189cab3d9ae29c2f0

Contents?: true

Size: 821 Bytes

Versions: 41

Compression:

Stored size: 821 Bytes

Contents

class CreateUnidomGuests < ActiveRecord::Migration

  def change

    create_table :unidom_guests, id: :uuid do |t|

      t.column :platform_code, 'char(4)',         null: false, default: 'SITE'
      t.string :platform_specific_identification, 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_guests, [ :platform_specific_identification, :platform_code ], unique: true, name: :index_guests_on_platform_identification

  end

end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
unidom-visitor-1.13.9 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.13.8 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.13.7 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.13.6 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.13.5 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.13.4 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.13.3 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.13.2 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.13.1 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.13 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.12.4 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.12.3 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.12.1 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.12 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.11.2 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.11.1 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.11 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.10 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.9 db/migrate/20000210000000_create_unidom_guests.rb
unidom-visitor-1.8 db/migrate/20000210000000_create_unidom_guests.rb