Ruby on Rails ActiveRecord

Toggle Space Navigation Tree
Space Map

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

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.