janko-m/sinatra-activerecord — pull request #25 by icambron (2014-03-20 04:39:47+00:00)
Title: allow for dumping sql

#24 doesn't work, since it just dumps the ruby schema into a .sql file; it never gets the actual SQL code at all. This PR fixes that and also addresses the other issues in #24: migrate does the right thing, but you have `schema:dump` always dumps ruby, whereas `structure:dump` always dumps SQL.