Sha256: 10b0725563c5e4d154b62edf6e548d22932452a72e6b4ab17b23569141ed67d2

Contents?: true

Size: 282 Bytes

Versions: 1

Compression:

Stored size: 282 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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
document_number-0.0.1 lib/generators/document_number/install/templates/create_document_numbers.rb