SchemaPlus/schema_plus_foreign_keys

Configuration typo in readme

Closed this issue · 1 comments

The readme currently says:

SchemaPlus::ForeignKey.setup do |config|
    config.on_update = :cascade   # default is nil, meaning use default dbms behavior
    config.on_delete = :nullify   # default is nil, meaning use default dbms behavior
end

But I think it should be:

SchemaPlus::ForeignKeys.setup do |config|
    config.on_update = :cascade   # default is nil, meaning use default dbms behavior
    config.on_delete = :nullify   # default is nil, meaning use default dbms behavior
end

Note the added "s" on end of SchemaPlus::ForeignKeys.

ronen commented

Good catch. Thanks!