エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
migrations: t.references doesn't allow index name to be specified
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
migrations: t.references doesn't allow index name to be specified
I have the following in a migration: create_table :model_with_a_long_name do |t| t.references :ot... I have the following in a migration: create_table :model_with_a_long_name do |t| t.references :other_model_with_an_equally_long_name, index: true end That produces an index with too long of a name for Postgres. Is there a way to manually specify the index name (without adding the integer column and the index separately)? Something like the following: create_table :model_with_a_long_name do |t| t.r

