]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/diary_comment.rb
Create an ApplicationRecord for models to inherit from
[rails.git] / app / models / diary_comment.rb
index ade7a64ea317fd38d00dc5b5ef6d5318068bc904..05f5044c5db779b232da81bd6e3bbdf0ba31d5b5 100644 (file)
@@ -2,9 +2,9 @@
 #
 # Table name: diary_comments
 #
-#  id             :integer          not null, primary key
-#  diary_entry_id :integer          not null
-#  user_id        :integer          not null
+#  id             :bigint(8)        not null, primary key
+#  diary_entry_id :bigint(8)        not null
+#  user_id        :bigint(8)        not null
 #  body           :text             not null
 #  created_at     :datetime         not null
 #  updated_at     :datetime         not null
@@ -22,7 +22,7 @@
 #  diary_comments_user_id_fkey         (user_id => users.id)
 #
 
-class DiaryComment < ActiveRecord::Base
+class DiaryComment < ApplicationRecord
   belongs_to :user
   belongs_to :diary_entry