mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-19 05:38:08 +01:00
Convert to ApplicationRecord
Rails 5 requires the use of this superclass for all database backed model objects now.
This commit is contained in:
parent
35e6384b95
commit
0e21d64890
12 changed files with 14 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
class Project < ActiveRecord::Base
|
||||
class Project < ApplicationRecord
|
||||
has_many :todos, -> {order("todos.due IS NULL, todos.due ASC, todos.created_at ASC")}, dependent: :delete_all
|
||||
has_many :notes, -> {order "created_at DESC"}, dependent: :delete_all
|
||||
has_many :recurring_todos
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue