Created
June 13, 2014 23:14
-
-
Save jamesjtong/0088e602f9cca1eab6bd 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 Account < ActiveRecord::Base | |
has_many :users | |
end | |
class User < ActiveRecord::Base | |
belongs_to :account | |
end | |
database tables | |
Accounts | |
id | salesforce_id| | |
Users | |
id | account_salesforce_id | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment