Skip to content

Commit

Permalink
Revert "Remove ApplicationRecord"
Browse files Browse the repository at this point in the history
This reverts commit cf149b3.
  • Loading branch information
blocknotes committed Sep 6, 2022
1 parent 3f9b180 commit eaf5d23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/models/active_storage_db/application_record.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

module ActiveStorageDB
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
end
end
2 changes: 1 addition & 1 deletion app/models/active_storage_db/file.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

module ActiveStorageDB
class File < ActiveRecord::Base
class File < ApplicationRecord
validates :ref,
presence: true,
allow_blank: false,
Expand Down

0 comments on commit eaf5d23

Please sign in to comment.