# frozen_string_literal: true # == Schema Information # # Table name: post_features # # id :bigint not null, primary key # created_at :datetime not null # updated_at :datetime not null # post_id :bigint not null # user_id :bigint not null # # Indexes # # index_post_features_on_created_at (created_at) # index_post_features_on_post_id (post_id) # index_post_features_on_user_id (user_id) # # Foreign Keys # # fk_rails_... (post_id => posts.id) # fk_rails_... (user_id => users.id) ON DELETE => restrict ON UPDATE => cascade # class Post::Feature < ApplicationRecord belongs_to :post belongs_to :user end