app/models/openstax/accounts/account.rb in openstax_accounts-9.0.3 vs app/models/openstax/accounts/account.rb in openstax_accounts-9.0.4

- old
+ new

@@ -10,10 +10,11 @@ :full_name, :title, :self_reported_role, :faculty_status, :school_type, + :school_location, :salesforce_contact_id, :support_identifier, :is_test, :is_kip ] @@ -24,10 +25,11 @@ :no_faculty_info, :pending_faculty, :confirmed_faculty, :rejected_faculty ] + enum role: [ :unknown_role, :student, :instructor, :administrator, @@ -35,18 +37,26 @@ :designer, :other, :adjunct, :homeschool ] + enum school_type: [ :unknown_school_type, :other_school_type, :college, :high_school, - :k12_school + :k12_school, + :home_school ] - validates :faculty_status, :role, :school_type, presence: true + enum school_location: [ + :unknown_school_location, + :domestic_school, + :foreign_school + ] + + validates :faculty_status, :role, :school_type, :school_location, presence: true validates :uuid, presence: true, uniqueness: true validates :support_identifier, uniqueness: { allow_nil: true } before_update :update_openstax_accounts, if: :should_send_updates_to_accounts?