rails-sqlserver/activerecord-sqlserver-adapter — pull request #348 by l8nite (2014-07-25 13:25:33+00:00)
Title: filter tables by current schema

We have a number of rails services talking to the same database and are using schema objects to logically partition the database. This is accomplished by setting the default schema for the independent database users that each service uses. Everything works great, except that when doing a db:schema:dump (for example, after a db:migrate) - the schema.rb file picks up all tables from all schemas.

This is a small change that filters the tables list by the session's current schema - there might be a better way to approach this - if you can think of one, let me know!