added dependants and through for relationships#2
Open
sugandhaa wants to merge 90 commits intoarchonproject:masterfrom
Open
added dependants and through for relationships#2sugandhaa wants to merge 90 commits intoarchonproject:masterfrom
sugandhaa wants to merge 90 commits intoarchonproject:masterfrom
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
Member
|
I just realized that a lot of the relationships are camelCased, and they should be underscore_cased. Please update before I pull this in. |
Author
|
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 |
Member
|
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
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.