Rails 4.0 supports adding indexes during create_table. We shall do the same for foreign_keys.

spread out some code. Make table_definitions test work

test file

fix up create_table override
Merge branch 'create_table_definition' of https://github.com/matthuhiggins/foreigner into create_table_definition