Created
April 6, 2016 18:51
-
-
Save dayweek/1b6497854158e21ecb440e231e29563d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Item < ApplicationRecord | |
belongs_to :item_set, optional: true | |
end | |
class ItemSet < ApplicationRecord | |
has_many :items | |
has_many :item_set_bonuses, class_name: ItemSetBonus | |
end | |
class ItemSetBonus < ApplicationRecord | |
self.table_name = "item_set_bonuses" | |
belongs_to :item_set | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment