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

앱개발

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

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

본문

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

 

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

 

  • 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를 사용하기 때문에.  모든 앱과 연결된다고 봐야죠..  이 소모임의 처음 부터 보시면,  진행되는 과정을 알 수 있습니다.

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

하나를 알고 모든 것을 아는 척하는 사람도 참  많죠.. ㅎㅎㅎ
전체 756 |RSS
앱개발 내용 검색

회원로그인

진행중 포인트경매

  1. 참여6 회 시작24.04.25 20:23 종료24.05.02 20:23
(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT