I want to create a "Relation" model that extends ActiveRecord :: Base, sets its table name to "questions_tags" and without a primary key. What should I do?
class Relation < ActiveRecord::Base set_table_name 'questions_tags'
UPDATE
Hi guys. I know that using "create_table" can solve this problem, but this is exactly what I want to know: what is the magic of
create_table(:id=>false) ? How to get the same effect without using
create_table(:id=>false) ?
ruby-on-rails activerecord
Freewind
source share