Skip to content

Commit 648f056

Browse files
author
Jan Provaznik
committed
Add ApplicationRecord model class
In Rails 5 all models by default inherit from ApplicationRecord.
1 parent 955bdcb commit 648f056

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/models/application_record.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
class ApplicationRecord < ActiveRecord::Base
4+
self.abstract_class = true
5+
end

0 commit comments

Comments
 (0)