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