I am a newbie in ruby/rails.
I have a question about my database model:
table1: entities (name, description, author_id …)
table2: relations (source_id, target_id, relation_type) (it describes
the relations between 2 entities and the relation type)
How can I define models using rails, or do I need to redefine my