Basis of rails-driven app for local business
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 

23 lines
775 B

class AddEmployeeDetailsToPerson < ActiveRecord::Migration
def self.up
add_column :people, :type, :string
add_column :people, :number, :string
add_column :people, :ssn, :string
add_column :people, :dob, :date
add_column :people, :hired, :date
add_column :people, :tax_status, :string
add_column :people, :dependents, :integer, :default => 0
add_column :people, :payrate, :decimal, :precision => 4, :scale => 2, :default => 0.25
end
def self.down
remove_column :people, :payrate
remove_column :people, :dependents
remove_column :people, :tax_status
remove_column :people, :hired
remove_column :people, :dob
remove_column :people, :ssn
remove_column :people, :number
remove_column :people, :type
end
end