I have this device:
resource: name: my resource owner: user_1 (User)
A resource is defined as follows:
class Resource < ActiveRecord::Base belongs_to :owner, :polymorphic => true
The user is defined as follows:
class User < ActiveRecord::Base has_many :resources, :as => :owner
When I run the test, I get an error that the owner of the column is not defined in the table. What am I doing wrong?
source share