Remove gem sqlite and update rails to 3.2.13
Refactor plain sql in migration to add_foreign_key