This project is archived and is in readonly mode.
Use schema.rb for AR's unit test for all databases
-
Michael Koziarski
- 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
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
-
Frederick Cheung
patch with schema specific schema.rb files.
-
Michael Koziarski
- State changed from new to resolved
