class User < ApplicationRecord
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable, :confirmable,
         :recoverable, :rememberable, :trackable, :validatable
  has_many :pictures, as: :imageable, dependent: :destroy
  has_many :votes, dependent: :destroy
end
class User < ApplicationRecord
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable, :confirmable,
         :recoverable, :rememberable, :trackable, :validatable
  has_many :pictures, as: :imageable, dependent: :destroy
  has_many :votes, dependent: :destroy
  has_many :rentals, dependent: :destroy
end
Add has_many rentals to User
Add has_many rentals to User
