Inherit models from ApplicationRecord instead of ActiveRecord::Base.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
require 'danbooru/has_bit_flags'
|
||||
require 'google/apis/pubsub_v1'
|
||||
|
||||
class Post < ActiveRecord::Base
|
||||
class Post < ApplicationRecord
|
||||
class ApprovalError < Exception ; end
|
||||
class DisapprovalError < Exception ; end
|
||||
class RevertError < Exception ; end
|
||||
|
||||
Reference in New Issue
Block a user