|
|
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
|