데이타베이스를 공부하다 보니.. > 앱개발

앱개발

데이타베이스를 공부하다 보니.. 정보

데이타베이스를 공부하다 보니..

본문

루비 온 레일스까지 링크가 가네요..

 

아래의 개념을 공부하고 있습니다.

 

  • http://rubykr.github.io/rails_guides/images/grey_bullet.gif) 0% 0.5em no-repeat;">belongs_to
  • http://rubykr.github.io/rails_guides/images/grey_bullet.gif) 0% 0.5em no-repeat;">has_one
  • http://rubykr.github.io/rails_guides/images/grey_bullet.gif) 0% 0.5em no-repeat;">has_many
  • http://rubykr.github.io/rails_guides/images/grey_bullet.gif) 0% 0.5em no-repeat;">has_many :through
  • http://rubykr.github.io/rails_guides/images/grey_bullet.gif) 0% 0.5em no-repeat;">has_one :through
  • http://rubykr.github.io/rails_guides/images/grey_bullet.gif) 0% 0.5em no-repeat;">has_and_belongs_to_many

 

http://rubykr.github.io/rails_guides/association_basics.html 

 

추가

http://guides.rubyonrails.org/association_basics.html#choosing-between-has-many-through-and-has-and-belongs-to-many 

 

has_many:through와 has_and_belongs_to_many는 같은 내용 같은데.. 

별도의 필드를 통해서(Through)가느냐 직접(direct)가느냐 차이인것 같습니다.

공감
0
  • 복사

댓글 2개

어차피 앱에서 DB를 사용하기 때문에.  모든 앱과 연결된다고 봐야죠..  이 소모임의 처음 부터 보시면,  진행되는 과정을 알 수 있습니다.

예전에 보면 시험 잘 봤다고 하는 사람 치고 잘 못본경우가 많죠..  즉 하나를 알면 두개가 보이고 둘 알면 넷이 보인다고 합니다.  공부는 하면 할수록 무한하죠..

하나를 알고 모든 것을 아는 척하는 사람도 참  많죠.. ㅎㅎㅎ
© SIRSOFT
현재 페이지 제일 처음으로