I created a new table Story in my Rails app:
Story Model:
class Story < ApplicationRecord
belongs_to :wp_post
end
WpPost Model:
class WpPost < ApplicationRecord
has_one :story, :dependent => :destroy
end
I would like that my Story appears in the related data tab of WpPost. So far, only has_many associations appear, I wonder why?
Thanks,
Nicolas