summaryrefslogtreecommitdiffstats
path: root/db/migrate/041_rename_comment_to_comments.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/041_rename_comment_to_comments.rb')
-rw-r--r--db/migrate/041_rename_comment_to_comments.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/041_rename_comment_to_comments.rb b/db/migrate/041_rename_comment_to_comments.rb
index 02391091a..8e2757304 100644
--- a/db/migrate/041_rename_comment_to_comments.rb
+++ b/db/migrate/041_rename_comment_to_comments.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
class RenameCommentToComments < ActiveRecord::Migration[4.2]
def self.up
rename_column(:comments, :comment, :comments) if ActiveRecord::Base.connection.columns(Comment.table_name).detect{|c| c.name == "comment"}