Sha256: 46bb68e60db2a6ff23b776b24870cc390109d5cf0f6e194d9a5c5ba1ccaff302

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

class CreateGringottsCodes < ActiveRecord::Migration
  def change
    create_table :gringotts_codes do |t|
      t.integer    :vault_id,  null: false
      t.string     :value,     null: false
      t.timestamps
    end
    
    add_index  :gringotts_codes, :vault_id, unique: false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gringotts-0.6.7 db/migrate/20131025014736_create_gringotts_codes.rb
gringotts-0.6.5 db/migrate/20131025014736_create_gringotts_codes.rb