app/models/openstax/accounts/account.rb in openstax_accounts-9.1.0 vs app/models/openstax/accounts/account.rb in openstax_accounts-9.2.0

- old
+ new

@@ -12,16 +12,22 @@ :self_reported_role, :faculty_status, :school_type, :salesforce_contact_id, :support_identifier, - :is_test + :is_test, + :is_kip ] attr_accessor :syncing - enum faculty_status: [:no_faculty_info, :pending_faculty, :confirmed_faculty, :rejected_faculty] + enum faculty_status: [ + :no_faculty_info, + :pending_faculty, + :confirmed_faculty, + :rejected_faculty + ] enum role: [ :unknown_role, :student, :instructor, :administrator, @@ -29,10 +35,16 @@ :designer, :other, :adjunct, :homeschool ] - enum school_type: [:unknown_school_type, :other_school_type, :college] + enum school_type: [ + :unknown_school_type, + :other_school_type, + :college, + :high_school, + :k12_school + ] validates :faculty_status, :role, :school_type, presence: true validates :uuid, presence: true, uniqueness: true validates :support_identifier, uniqueness: { allow_nil: true }