diff --git a/app/models/active_storage_db/application_record.rb b/app/models/active_storage_db/application_record.rb new file mode 100644 index 0000000..67db770 --- /dev/null +++ b/app/models/active_storage_db/application_record.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +module ActiveStorageDB + class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true + end +end diff --git a/app/models/active_storage_db/file.rb b/app/models/active_storage_db/file.rb index 0644383..f504dd9 100644 --- a/app/models/active_storage_db/file.rb +++ b/app/models/active_storage_db/file.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true module ActiveStorageDB - class File < ActiveRecord::Base + class File < ApplicationRecord validates :ref, presence: true, allow_blank: false,