dev_forum
daiao 6 years ago
parent 2ab15ddf5c
commit 91661cbee8

@ -1,5 +1,4 @@
class Repertoire < ApplicationRecord
default_scope :order => 'updated_at desc'
has_many :sub_repertoires, ->{order(updated_at: :desc)}, :dependent => :destroy
has_many :tag_repertoires, through: :sub_repertoires

Loading…
Cancel
Save