Found it on: Creating a model that has a tree structure
Thanks to coreyward :)
class Tag < ActiveRecord::Base
attr_accessible :description, :name, :parent_id
has_many :children, class_name: "Tag", foreign_key: "parent_id"
belongs_to :parent, class_name: "Tag",primary_key: "id"
end