新しい移行を作成しました。次のようになります。
class AddCommentsToUsers < ActiveRecord::Migration
def change
add_column :users, :comments, :text
end
end
Code Climate を使用すると、次のような問題が警告されます。
Missing frozen string literal comment.
私は次のように修正しようとしました:
# frozen_string_literal: true
class AddCommentsToUsers < ActiveRecord::Migration
def change
add_column :users, :comments, :text
end
end
しかし、私はまだ同じ問題を抱えています。どうすれば解決できますか?ありがとう。