Sha256: d5dff2ca84bdc5c923fce34d8db2237ddfe814cd4218182bd5372e61efefc4ca

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

# encoding: utf-8

# Creates a table for the Uuids::Uuid model of uuids.
class CreateUuidsUuids < ActiveRecord::Migration
  def change
    create_table :uuids_uuids do |t|
      t.string     :value,  limit: 36, null: false
      t.references :record, polymorphic: true, null: false, index: true
    end
    add_index :uuids_uuids, :value, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
uuids-3.0.0 db/migrate/20141016112506_create_uuids_uuids.rb
uuids-2.0.0 db/migrate/20141016112506_create_uuids_uuids.rb