SOLVED: Re: PostgreSQL primary (sequence) key issue (Ruby/Rails)

Hi, this one has been finally put to bed!!

Hi, this one has been finally put to bed!!

How?

Curious, jeremy

Hi,

How?

the process is as follows (i’m using pgRails by the way):

  1. In project/config/environment.rb place the following line:

Include your application configuration below - Located at bottom of page

ActiveRecord::Base.pluralize_table_names = false

  1. In C:\pgRails\lib\ruby\gems\1.8\gems\activerecord- 1.15.2\lib\active_record\connection_adapters\postgresql_adapter.rb place the following code:

Note: You are looking for:

module ConnectionAdapters … class PostgreSQLAdapter < AbstractAdapter

then place the following code: