added route, controller, model, sidebar link, and basic index page for the work info section so that we can render user data
This commit is contained in:
@@ -12,6 +12,7 @@ class User < ActiveRecord::Base
|
||||
before_save :assign_user_id, :on => :create
|
||||
has_one :retirement, :foreign_key => :user_id, :primary_key => :user_id
|
||||
has_one :paid_time_off, :foreign_key => :user_id, :primary_key => :user_id
|
||||
has_one :work_info, :foreign_key => :user_id, :primary_key => :user_id
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
class WorkInfo < ActiveRecord::Base
|
||||
attr_accessible :DoB, :SSN, :bonuses, :income, :user_id, :years_worked
|
||||
belongs_to :user
|
||||
end
|
||||
Reference in New Issue
Block a user