Sha256: 548b3f7e07fdec885ceed46f982dbdc3a315477809f754aa918a6a966e1d34f9

Contents?: true

Size: 813 Bytes

Versions: 3

Compression:

Stored size: 813 Bytes

Contents

class CreateAssets < ActiveRecord::Migration
  def change
    create_table :assets do |t|
      t.string :name
      t.text   :description
      t.string :current_location
      t.boolean :is_new
      t.boolean :is_traded
      t.boolean :electroic_need
      t.string :volts
      t.string :model_no
      t.string :serial_no
      t.string :sku
      t.date   :manufactured_date
      t.date   :purchased_date
      t.string :purchased_from
      t.text   :info
      t.string :replace_priority
      
      #manufacture
      t.string :company_name
      t.integer :company_phone
      t.text    :company_detail
      t.text    :comapny_address
      t.text    :company_other
      #cost
      t.integer :cost_of_owner
      t.integer :purchased_cost
      
      
      
      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pshq_engine-0.1.6 db/migrate/20150409140324_create_assets.rb
pshq_engine-0.1.5 db/migrate/20150409140324_create_assets.rb
pshq_engine-0.0.1 db/migrate/20150409140324_create_assets.rb