結合テーブルを削除
適応バージョン
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.2.1
- 7.0.0
説明
結合テーブルを削除
使い方
drop_join_table(テーブル1, テーブル2 [, オプション])
オプション
| オプション | 説明 | 
|---|---|
| :table_name | テーブルの名前 | 
| :column_options | カラムのオプション | 
| :options | オプション | 
| :temporary | 一時テーブルとして作成 | 
| :force | テーブルを作成前に、既存のテーブルを削除 | 
例
結合テーブルを削除
drop_join_table(:assemblies, :parts)
オプション指定
drop_join_table(:assemblies, :parts, options: 'ENGINE=InnoDB DEFAULT CHARSET=utf8')