Sha256: ba37974c5f63dbd205d464f3f747c1613cd40f7a63fc8c48fdc4c77bfd63a8ef

Contents?: true

Size: 221 Bytes

Versions: 1

Compression:

Stored size: 221 Bytes

Contents

class CreateAccounts < ActiveRecord::Migration
  def up
    create_table :accounts, :id => false do |t|
      t.binary :uuid, :limit => 16
      t.string :name
    end
  end

  def down
    drop_table :accounts
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord_uuid_as_pk-1.0.0 test_app/db/migrate/20130409010425_create_accounts.rb