Sha256: 6efdd1a59ca38029ceaf830e222b09137ef61d754bd4a6dc2b6221d1412ba261
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
AutomaticForeignKey.setup do |config| # Default ON UPDATE action # Available values are :cascade, :restrict, :set_null, :set_default, :no_action # config.on_update = :cascade # # Default ON DELETE action # Available values are :cascade, :restrict, :set_null, :set_default, :no_action # config.on_delete = :restrict # # Auto indexing foreign keys. # It's relevant for PostgreSQL only. # MySQL engines auto-index foreign keys by default # config.auto_index = true end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
automatic_foreign_key-1.2.0 | lib/generators/automatic_foreign_key/templates/automatic_foreign_key.rb |