bug fix: foreign keys should have a consistent default name.
authorronen barzel <ronen@barzel.org>
Sun, 20 Jan 2013 22:13:00 +0000 (22:13 +0000)
committerronen barzel <ronen@barzel.org>
Sun, 20 Jan 2013 22:16:13 +0000 (22:16 +0000)
commitb11aecddd2a9d179fe682c414e24b8c0bdb570d3
tree1a9d5880c52d15bebeeb2a60c3947d5d6ca7be82
parent1ebf23f6397a6888905c7b67aaecb7ed0e171351
bug fix: foreign keys should have a consistent default name.

(also, this uncovered that a spec was creating a duplicate constraint.)
lib/schema_plus/active_record/connection_adapters/abstract_adapter.rb
lib/schema_plus/active_record/connection_adapters/foreign_key_definition.rb
lib/schema_plus/active_record/connection_adapters/table_definition.rb
spec/foreign_key_spec.rb
spec/migration_spec.rb