Asset-Tracker/db/migrate/20100806225855_create_assets.rb
2011-06-14 18:08:28 -07:00

24 lines
433 B
Ruby
Executable File

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