Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $id, $name, $alliance_id, $points, $rank, $towns
- $id, $name, $points, $towns, $members, $rank
- # Player.rb
- belongs_to :alliance
- # Alliance.rb
- has_many :players
- def alliance
- Alliance.find_by_al_id(self.gr_alliance_id)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement