hzamani / acts_as_relation

Multi table Inheritance for rails
http://hzamani.github.com/acts_as_relation/
MIT License
180 stars 58 forks source link

Association field name error (assuming default convension names) #60

Closed okliv closed 10 years ago

okliv commented 10 years ago

if i have devices as superclass and add device_id and device_type fields to it i receive this

Unknown column 'devices.as_device_id' in 'on clause': 

if i rename device_id to as_device_... everything works like expected

hzamani commented 10 years ago

super class require as_device_id and as_device_type column in databse Use as_relation_superclass option on create table.