mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 13:14:29 +08:00
hound fix
This commit is contained in:
parent
370a0ecad5
commit
e7958ed40c
2 changed files with 3 additions and 1 deletions
|
@ -142,7 +142,7 @@ class MyModule < ApplicationRecord
|
|||
|
||||
def self.approaching_due_dates
|
||||
where(due_date_notification_sent: false)
|
||||
.where("due_date > ? AND due_date <= ?", DateTime.current, DateTime.current + 1.day)
|
||||
.where('due_date > ? AND due_date <= ?', DateTime.current, DateTime.current + 1.day)
|
||||
end
|
||||
|
||||
def parent
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddTaskDueDateReminderNotification < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :my_modules, :due_date_notification_sent, :boolean, default: false
|
||||
|
|
Loading…
Add table
Reference in a new issue