Sha256: 664d2c93d48a80a08c851775462a677b5f4c85be86497b491bbad773d33416c9

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

class CreateDocumentNumbers < ActiveRecord::Migration
  def change
    create_table :document_numbers do |t|
      t.string   :document
      t.integer  :number, null: false, default: 0
      t.datetime :created_at
    end
    add_index :document_numbers, :document, unique: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
document_number-0.0.1 spec/dummy/db/migrate/20140610080445_create_document_numbers.rb