lib/gdshowsdb/models/show.rb in gdshowsdb-4.0.1 vs lib/gdshowsdb/models/show.rb in gdshowsdb-4.0.2

- old
+ new

@@ -1,8 +1,8 @@ class Show < ActiveRecord::Base include Extensions::UUID - has_many :show_sets, :foreign_key => :show_uuid, :primary_key => :uuid + has_many :show_sets, -> {order(position: :asc)}, :foreign_key => :show_uuid, :primary_key => :uuid has_many :song_occurences, :foreign_key => :show_uuid, :primary_key => :uuid has_many :song_refs, :through => :song_occurences, :foreign_key => :show_uuid def self.create_from(spec) show = Show.new \ No newline at end of file