diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-12-23 09:14:23 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-12-23 09:20:54 -0700 |
commit | d26704a15f88d384dd282425daa832affdb5f8c1 (patch) | |
tree | d2dde416ae8999199c37f415a510b5b114a47dd0 /activerecord/test/cases/coders | |
parent | affae7d904e1dd91c89f8126358a2d2fbbe49eeb (diff) | |
download | rails-d26704a15f88d384dd282425daa832affdb5f8c1.tar.gz rails-d26704a15f88d384dd282425daa832affdb5f8c1.tar.bz2 rails-d26704a15f88d384dd282425daa832affdb5f8c1.zip |
Refactor a common class to reduce the duplication for `references`
The code for `TableDefinition#references` and
`SchemaStatements#add_reference` were almost identical both
structurally, and in terms of domain knowledge. This removes that
duplication into a common class, using the `Table` API as the expected
interface of its collaborator.
Diffstat (limited to 'activerecord/test/cases/coders')
0 files changed, 0 insertions, 0 deletions