Skip to content

Commit eaf5d23

Browse files
committed
Revert "Remove ApplicationRecord"
This reverts commit cf149b3.
1 parent 3f9b180 commit eaf5d23

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module ActiveStorageDB
4-
class File < ActiveRecord::Base
4+
class File < ApplicationRecord
55
validates :ref,
66
presence: true,
77
allow_blank: false,

0 commit comments

Comments
 (0)