Sha256: 230dbb7ed0c87816510c3d0c16902c0f57d9ce96fe22059f5f8b5270386723fc
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
# ForcefulForeignKey When `force: true` is set, It will delete orphaned data before applying the foreign key constraint. Use cautiously! ```Ruby class AddFKContraint < ActiveRecord::Migration def change add_foreign_key 'foo', 'bar', force: true end end ``` ## Installation Add this line to your application's Gemfile: ```ruby gem 'forceful_foreign_key' ``` tall forceful_foreign_key ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forceful_foreign_key-0.1.1 | README.md |
forceful_foreign_key-0.1.0 | README.md |