We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f9b180 commit eaf5d23Copy full SHA for eaf5d23
2 files changed
app/models/active_storage_db/application_record.rb
@@ -0,0 +1,7 @@
1
+# frozen_string_literal: true
2
+
3
+module ActiveStorageDB
4
+ class ApplicationRecord < ActiveRecord::Base
5
+ self.abstract_class = true
6
+ end
7
+end
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,
0 commit comments