Inherit models from ApplicationRecord instead of ActiveRecord::Base.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class PostReplacement < ActiveRecord::Base
|
||||
class PostReplacement < ApplicationRecord
|
||||
DELETION_GRACE_PERIOD = 30.days
|
||||
|
||||
belongs_to :post
|
||||
|
||||
Reference in New Issue
Block a user