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

  1. class AddEmployeeDetailsToPerson < ActiveRecord::Migration
  2. def self.up
  3. add_column :people, :type, :string
  4. add_column :people, :number, :string
  5. add_column :people, :ssn, :string
  6. add_column :people, :dob, :date
  7. add_column :people, :hired, :date
  8. add_column :people, :tax_status, :string
  9. add_column :people, :dependents, :integer, :default => 0
  10. add_column :people, :payrate, :decimal, :precision => 4, :scale => 2, :default => 0.25
  11. end
  12. def self.down
  13. remove_column :people, :payrate
  14. remove_column :people, :dependents
  15. remove_column :people, :tax_status
  16. remove_column :people, :hired
  17. remove_column :people, :dob
  18. remove_column :people, :ssn
  19. remove_column :people, :number
  20. remove_column :people, :type
  21. end
  22. end