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-12 16:05:10 +0100
commit993dd964becd4ab08d83a07c6ecb2dbf57020f95 (patch)
tree3d2c7a776548f21c2d510d7b968a19f8ff0484b8
parent8606ee19a4a758f1efec749fd8e3513b5610e1d9 (diff)
downloadgitlab-ce-993dd964becd4ab08d83a07c6ecb2dbf57020f95.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