[Rails-core] Re: Schema dump support for multiple schemas

2015-05-06 Thread Yves Senn
I personally don't think we should spend time on expanding the horizon of `db/schema.rb` for specific database adapters. Sure, there are already very specific things in there but they generally lead to issues down the line. With `db/structure.sql` we have a working solution, maintained by the

[Rails-core] Re: Schema dump support for multiple schemas

2015-05-06 Thread Stenver Jerkku
Thanks you for you answer and the git reference. However, the problem with db/structure.sql is that its very unreadable. A 1000 line schema.rb will become 6000 line structure.sql. I was hoping that i wouldnt need to use the structure.sql for that reason. On Wednesday, May 6, 2015 at 10:14:55

[Rails-core] Re: Schema dump support for multiple schemas

2015-05-06 Thread Andrey Novikov
As far as I know schemas are part of SQL standard and MySQL and SQLite just does not support them (but PostgreSQL does). IMHO, it should not be treated as “database specific” just for that. Schemas may be very useful when you have a lot of tables (e.g. to move dictionaries to another