これを試してください:
default_scope { order('collections.id ASC') } //collection.rb
default_scope { order('components.id ASC') } //component.rb
joinを実行するとき idで昇順 ambiguousになります 両方のcomponentsが およびcollections idを持っている 桁。どちらを使用すればよいかわかりません。
これを試してください:
default_scope { order('collections.id ASC') } //collection.rb
default_scope { order('components.id ASC') } //component.rb
joinを実行するとき idで昇順 ambiguousになります 両方のcomponentsが およびcollections idを持っている 桁。どちらを使用すればよいかわかりません。