About 85% through porting over MySQL on duplicate key functionality.
This commit is contained in:
parent
5836e449fd
commit
e8271778b7
5 changed files with 239 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
class Topic < ActiveRecord::Base
|
||||
validates_presence_of :author_name
|
||||
has_many :books
|
||||
belongs_to :parent, :class_name => "Topic"
|
||||
|
||||
composed_of :description, :mapping => [ %w(title title), %w(author_name author_name)], :allow_nil => true, :class_name => "TopicDescription"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue