Created
November 20, 2018 14:40
-
-
Save edezekiel/39051117ef3809b5ae99c8f7b6386e82 to your computer and use it in GitHub Desktop.
example of activerecord association
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 Band < ActiveRecord::Base | |
has_many :sessions | |
has_many :concerts, through: :sessions | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment