Asset-Tracker/db/migrate/20100806225855_create_assets.rb

24 lines
433 B
Ruby
Raw Normal View History

2011-06-15 01:08:28 +00:00
class CreateAssets < ActiveRecord::Migration
def self.up
create_table :assets do |t|
t.string :tag
t.string :name
t.string :serial
t.string :category
t.string :make
t.date :warranty
t.string :password
t.string :location
t.string :assigned
t.string :status
t.datetime :verified
t.timestamps
end
end
def self.down
drop_table :assets
end
end