summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-11-11 09:43:43 +0100
committerJan Provaznik <jprovaznik@gitlab.com>2018-11-14 12:41:16 +0100
commit648f05622dc0a71c6c2addfac4ce5f2a639d4468 (patch)
tree69ee0bed57aa5b834cd0e2c4b1b0e07766565391
parent955bdcb5d49c22bbc24ecf987fea108a6e67b5af (diff)
downloadgitlab-ce-648f05622dc0a71c6c2addfac4ce5f2a639d4468.tar.gz
Add ApplicationRecord model class
In Rails 5 all models by default inherit from ApplicationRecord.
-rw-r--r--app/models/application_record.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/application_record.rb b/app/models/application_record.rb
new file mode 100644
index 00000000000..71fbba5b328
--- /dev/null
+++ b/app/models/application_record.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+class ApplicationRecord < ActiveRecord::Base
+ self.abstract_class = true
+end