Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Use schema.rb for AR's unit test for all databases

#31

Reported by Frederick Cheung · April 21st, 2008 @ 11:04 AM

State: resolved
Milestone: none
Assigned to: Michael Koziarski Michael Koziarski
Importance: none

Activity

  1. Michael Koziarski
    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.

    April 21st, 2008 @ 10:40 PM

  2. Frederick Cheung
    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

    April 21st, 2008 @ 11:11 PM

  3. Frederick Cheung
  4. Michael Koziarski
    Michael Koziarski
    • State changed from new to resolved

    April 30th, 2008 @ 10:17 PM