2022-09-06から1日間の記事一覧
たとえば、usersテーブルのhoge_idというカラムにコメントをつけたいとき。 bin/rails g migration AddCommentsToUsers class AddCommentsToUsers < ActiveRecord::Migration[6.1] def change change_column_comment :users, :hoge_id, 'some comment here' …
たとえば、usersテーブルのhoge_idというカラムにコメントをつけたいとき。 bin/rails g migration AddCommentsToUsers class AddCommentsToUsers < ActiveRecord::Migration[6.1] def change change_column_comment :users, :hoge_id, 'some comment here' …