Sha256: af8f873276cd6f6d03f6ca10e35ab2acd8701ada63d9622ba063f969abfeb980
Contents?: true
Size: 696 Bytes
Versions: 42
Compression:
Stored size: 696 Bytes
Contents
# frozen_string_literal: true module GoodJob # Base ActiveRecord class that all GoodJob models inherit from. # Parent class can be configured with +GoodJob.active_record_parent_class+. # @!parse # class BaseRecord < ActiveRecord::Base; end class BaseRecord < Object.const_get(GoodJob.active_record_parent_class) self.abstract_class = true def self.migration_pending_warning! ActiveSupport::Deprecation.warn(<<~DEPRECATION) GoodJob has pending database migrations. To create the migration files, run: rails generate good_job:update To apply the migration files, run: rails db:migrate DEPRECATION nil end end end
Version data entries
42 entries across 42 versions & 1 rubygems
Version | Path |
---|---|
good_job-2.8.1 | lib/good_job/base_record.rb |
good_job-2.8.0 | lib/good_job/base_record.rb |