-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added dependants and through for relationships #2
base: master
Are you sure you want to change the base?
Conversation
added dependent - destroy for collection creator relationship and collection location entry
added Through accession location entries
Added through accessions
changed to belong_to
added through collection creation relationships
added through
added through
added through creator book relation ships
added through digital contents
added through
changed has_one to has_many
added dependant
depedants added
dependant added
dependants
added dependant
through and dependants added
I just realized that a lot of the relationships are camelCased, and they should be underscore_cased. Please update before I pull this in. |
Paul..Do we have to change the class names too ? cos, I guess while declaring a variable it should follow the similar conventions except that it is pluralized or un pluralized ?how will rails detect otherwise which class is in the relation ship?Correct me if iam wrong |
The class names are always camel cased, but everything within the class is not. You should follow the pluralized conventions, rails will be able to detect it. For instance, you could have a class like this class Car < ActiveRecord::Base
has_many :model_types
belongs_to :auto_manufacturer
end
class ModelType < ActiveRecord::Base
belongs_to :car
end
class AutoManufacturer < ActiveRecord::Base
has_many :cars
end |
changed to under_score case
changed to under_score case
added under_score case
changed to under_score case
under_score case added
added under_score case
changed to camelcase
camel case
has many collections, creators, user_repository_relationships, users
belongs to repository
added belongs to relationships
belongs to creator relationship type
has language and subjects relationships, has files
digital_content_subject_relationships
has many collection content relationships, belongs to subject_type
added has_many relationships
added has many creators
added has_many creators
added has many relationships
added has many user fields
added has many creators, digital contents, digital content creator relationships
added belongs to country
added has many colections
minor change
added json data
added attr_accessible fields
No description provided.