marketing
Joined 8/28/2020
marketing said over 3 years ago on Friend Requests From Scratch :
You need to edit the migration before you run it to add the references to the User table:

class CreateFriendships < ActiveRecord::Migration[6.0]
  def change
    create_table :friendships do |t|
      t.references :user, null: false, foreign_key: { to_table: :users }
      t.references :friend, null: false, foreign_key: { to_table: :users }
      t.integer :status, default: 0, limit: 1

      t.timestamps
    end
  end
end


marketing said over 3 years ago on Friend Requests Views, Controllers, and Model Methods :
Is there a continuation on the site somewhere where you cover blocking friends/users? The enum has a blocked value, but there's no further mention of it.