rsim/oracle-enhanced — pull request #263 by nhance (2012-12-11 16:51:21+00:00)
Title: Supports table_name prefix/suffix for add_foreign_key

This change will allow the `add_foreign_key` method to work with table name prefixes and suffixes.
With this code, it is now possible to change the suffix or prefix of tables without having to modify your migrations.

_Improvement possible: I was unable to identify how Rails translates table names in migrations, so the prefix and suffix support has been hard-coded. If the method used to translate a symbol into a table name (including prefix/suffix) can be identified, this can be further improved._

---

Closes reenhanced/oracle-enhanced#1

LGTM given by: @codenamev

```text
Squashed commit of the following:

commit b1c0fedfca69cde2d20ea362ea738afd422e516e
Author: Nicholas Hance
Date: Tue Dec 11 11:16:39 2012 -0500

typo

commit 6f776e4589a2a0e6873d1d624428db29bfae904d
Author: Nicholas Hance
Date: Tue Dec 11 11:07:25 2012 -0500

Supports table_name_suffix for add_foreign key

commit db3c2655a7717905443348f576e4a278942ce903
Author: Nicholas Hance
Date: Tue Dec 11 10:44:34 2012 -0500

Support table prefix for add_foreign_key
```