Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
複数列のインデックス作成を使用したい Mysql データベースにテーブルがあります。mysqlコンソールを使用せずにレールでこれを行うにはどうすればよいですか?
移行定義内では、次のように実行できます。
add_index :table_name, [:column1, :column2]