aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/schema_dumper.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-23 09:14:23 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-23 09:20:54 -0700
commitd26704a15f88d384dd282425daa832affdb5f8c1 (patch)
treed2dde416ae8999199c37f415a510b5b114a47dd0 /activerecord/lib/active_record/schema_dumper.rb
parentaffae7d904e1dd91c89f8126358a2d2fbbe49eeb (diff)
downloadrails-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/lib/active_record/schema_dumper.rb')
0 files changed, 0 insertions, 0 deletions