Skip to content

Commit

Permalink
Remove obsolete tutorial name seacrh field (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 authored Dec 14, 2024
1 parent 9dcd2b9 commit da59363
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ class User < ApplicationRecord
scope :inactive_for, ->(threshold) { where(current_sign_in_at: ...threshold.ago) }
scope :confirmation_sent_before, ->(threshold) { where(confirmation_sent_at: ...threshold.ago) }

searchable do
text :tutorial_name
end

# returns the array of all teachers
def self.teachers
User.where(id: Lecture.distinct.select(:teacher_id))
Expand Down

0 comments on commit da59363

Please sign in to comment.