14873: Adds new abstract class ApplicationRecord.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Mon, 25 Mar 2019 14:33:30 +0000 (11:33 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Mon, 25 Mar 2019 14:33:30 +0000 (11:33 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>

services/api/app/models/application_record.rb [new file with mode: 0644]
services/api/app/models/arvados_model.rb

diff --git a/services/api/app/models/application_record.rb b/services/api/app/models/application_record.rb
new file mode 100644 (file)
index 0000000..759034d
--- /dev/null
@@ -0,0 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+class ApplicationRecord < ActiveRecord::Base
+  self.abstract_class = true
+end
\ No newline at end of file
index 5df1f2c8159a0b1c3a8df6b31b6d08449e67a735..ffcf0917248f45b14e96ccdf6da75fa386be1e5e 100644 (file)
@@ -8,7 +8,7 @@ require 'record_filters'
 require 'serializers'
 require 'request_error'
 
-class ArvadosModel < ActiveRecord::Base
+class ArvadosModel < ApplicationRecord
   self.abstract_class = true
 
   include ArvadosModelUpdates