Guest User

Untitled

a guest
Apr 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. class CreateUsers < ActiveRecord::Migration
  2. def self.up
  3. create_table "users", :force => true do |t|
  4. t.column :type, :string
  5. t.column :users, :string
  6. t.column :email, :string
  7. t.column :firstname, :string
  8. t.column :middlename, :string
  9. t.column :lastname, :string
  10. t.column :phone, :integer, :limit => 10
  11. t.column :crypted_password, :string, :limit => 40
  12. t.column :salt, :string, :limit => 40
  13. t.column :created_at, :datetime
  14. t.column :updated_at, :datetime
  15. t.column :remember_token, :string
  16. t.column :remember_token_expires_at, :datetime
  17. t.column :activation_code, :string, :limit => 40
  18. t.column :activated_at, :datetime
  19. # admin info
  20.  
  21. # sponsor info
  22. t.column :title, :string
  23. t.column :department, :string
  24. t.column :sponsor_name, :string
  25. t.column :sponsor_type, :string
  26. t.column :address1, :string
  27. t.column :address2, :string
  28. t.column :city, :string
  29. t.column :state, :string
  30. t.column :zip, :integer, :limit => 9
  31. t.column :website, :string
  32. # student info
  33. t.column :major, :string
  34. t.timestamps
  35. end
  36. end
  37.  
  38. def self.down
  39. drop_table "users"
  40. end
  41. end
Add Comment
Please, Sign In to add comment