Skip to content

Commit

Permalink
Merge pull request #25 from blocknotes/fix/restore-application-record
Browse files Browse the repository at this point in the history
Revert "Remove ApplicationRecord"
  • Loading branch information
Mattia Roccoberton authored Sep 6, 2022
2 parents 3f9b180 + eaf5d23 commit e7f14f2
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 e7f14f2

Please sign in to comment.