schema_auto_foreign_keys 1.0.0
In an ActiveRecord migration, set the default to create a foreign key and index for all columns that define relatoins.
Gemfile:
=
安裝:
=
Runtime 相依性套件 (2):
schema_plus_foreign_keys
~> 1.0.0
schema_plus_indexes
~> 1.0.0