Sha256: d556ca52c8c4fe4f5a089483cc2da5b5c0a556e6912d7a886fc922d95a4280cd

Contents?: true

Size: 378 Bytes

Versions: 9

Compression:

Stored size: 378 Bytes

Contents

class CreateBookkeeperPurchases < ActiveRecord::Migration
  def change
    create_table :bookkeeper_purchases do |t|
      t.string    :title,                nil: false
      t.text      :description
      t.date      :purchase_date
      t.integer   :warranty_duration
      t.string    :receipt
      t.timestamps
    end
    add_index :bookkeeper_purchases, :title
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bookkeeper-0.0.7 db/migrate/20130215165240_create_bookkeeper_purchases.rb
bookkeeper-0.0.6 db/migrate/20130215165240_create_bookkeeper_purchases.rb
bookkeeper-0.0.5 db/migrate/20130215165240_create_bookkeeper_purchases.rb
bookkeeper-0.0.4 db/migrate/20130215165240_create_bookkeeper_purchases.rb
bookkeeper-0.0.3 db/migrate/20130215165240_create_bookkeeper_purchases.rb
bookkeeper-0.0.2 db/migrate/20130215165240_create_bookkeeper_purchases.rb
bookkeeper-0.0.1 db/migrate/20130215165240_create_bookkeeper_purchases.rb
bookkeeper-0.0.1.beta2 db/migrate/20130215165240_create_bookkeeper_purchases.rb
bookkeeper-0.0.1.beta1 db/migrate/20130215165240_create_bookkeeper_purchases.rb