Displaying 1 result from an estimated 1 matches for "things_id_seq".
2007 Jun 19
2
sequence name prefix
...I use different database schemas for each application, by
declaring, e.g.:
class ApplicationController < ActionController::Base
ActiveRecord::Base.table_name_prefix = "keywords."
end
I assumed that the sequence names were also prefixed with the database
schema names, e.g.
keywords.things_id_seq
But Rails 1.2.3 assumes the sequence is *NOT* in the same schema as the
tables, and prefixes them with ''public.'' :-(
I have to declare in *ALL* my classes:
set_sequence_name "keywords.things_id_seq"
This is awful in terms of maintenance. So I would be very grate...