In Postgres, I use different database schemas for each application, by
class ApplicationController < ActionController::Base
ActiveRecord::Base.table_name_prefix = “keywords.”
I assumed that the sequence names were also prefixed with the database
schema names, e.g.
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:
This is awful in terms of maintenance. So I would be very grateful if I
could find an equivalent of:
ActiveRecord::Base.sequence_name_prefix = “keywords.”
(this fails: undefined method `sequence_name_prefix=’ for
Any help very much appreciated.