Ruby on Rails ActiveRecord
  Dashboard > Ruby > Home > Ruby on Rails ActiveRecord
Community
  Ruby Log In | Sign Up   View a printable version of the current page.  
Added by 박재성, last edited by 박재성 on 12월 19, 2006
Labels: 
(None)

belongs_to (1:N)

  • 1:N 관계에서 1에 해당하는 Model이 N에 해당하는 Model과의 관계를 정의할 때 사용

has_many (1:N)

  • 1:N 관계에서 N에 해당하는 Model이 1에 해당하는 Model과의 관계를 정의할 때 사용

has_one (1:1)

  • 1:1 관계에서 서로의 관계를 정의하고자할 때 사용

has_and_belongs_to_many (M:N)

acts_as_list

  • 순서가 있는 리스트로 관계를 형성하고자할 때 사용

acts_as_tree

  • Tree관계를 정의하고자할 때 사용

acts_as_nested_set


Site running on a free Atlassian Confluence Open Source Project License granted to JavaJiGi Project. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.3.1 Build:#643 1월 22, 2007) - Bug/feature request - Contact Administrators