This project is archived and is in readonly mode.
Use schema.rb for AR's unit test for all databases
Reported by Frederick Cheung | April 21st, 2008 @ 11:04 AM
Comments and changes to this ticket
-
Michael Koziarski April 21st, 2008 @ 10:40 PM
- Assigned user set to Michael Koziarski
There's a change to the postgresql adapter that I don't quite follow. Is it meant to be in this change?
The only other thought I had was perhaps we could put the db specific schema statements into their own files. something like sqlite_specific_schema.rb which gets loaded if it exists?
Really good work.
-
Frederick Cheung April 21st, 2008 @ 11:11 PM
The change to the adapter is because of http://www.postgresql.org/docs/8... and if my reading of that is correct, probably should have been like that all along. I added that because of errors around the mixed_case_monkeys table.
My understandanding is that the old postgres schema wasn't creating the primary key on that table as a serial, whereas now since it's just a standard create_table it is, which gives us a mixed case sequence name.
I was wondering about the database specific stuff. shouldn't be hard to move database specific stuff into separate schema.rbs
-
Michael Koziarski April 30th, 2008 @ 10:17 PM
- State changed from new to resolved
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>