Displaying 4 results from an estimated 4 matches for "postgres_adapter".
2012 Dec 12
1
#8498 postgres_adapter fix for disable_referential_integrity
Please review this patch for postgres adapter''s referential_integrity.rb in
Rails master and 3.2.9 and let me know what you think. We are using it via
an initializer (monkey patching the adapter directly vs. in module):
https://github.com/rails/rails/pull/8498
Fixes this issue also seen by others in Foreigner:
https://github.com/matthuhiggins/foreigner/issues/61
Problem that it
2005 Dec 25
3
SQLite primary key schema
...ated_on timestamp without time zone,
avatar character varying(255)
);
That ''id serial NOT NULL'' should clearly be an ''id INTEGER PRIMARY KEY
NOT NULL'', but regardless of how much I play with the settings in
''sqlite_adapter.rb'' and ''postgres_adapter.rb'', I still get the same
result. Does anyone have any brilliant ideas?
Thanks in advance,
Dan
2006 Jul 20
4
Help with Rails and postgres with sequence numbers (global?)
...ge:
ActiveRecord::StatementInvalid: RuntimeError: ERROR C42P01
Mrelation "parts
group_id_seq" does not exist Fnamespace.c L200
RRangeVarGetRelid: SELEC
T currval(''partsgroup_id_seq'')
This is of course true, because of the global sequence.I did look into
the postgres_adapter and found pk_and_sequence_for but I am only
understanding nada. ;-)
schema:
lxtest=# \d partsgroup
Table "public.partsgroup"
Column | Type | Modifiers
------------+-----------------------------+---------------------...
2013 Jul 23
1
Postgres adapter misconfigured on Linux?
...y-1.9.3-p392-railsexpress@workbench-api/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:649:in
> `execute''
> /home/ben/.rvm/gems/ruby-1.9.3-p392-railsexpress@workbench-api/gems/postgres_ext-0.4.0/lib/postgres_ext/active_record/connection_adapters/postgres_adapter.rb:326:in
> `add_index''
> /home/ben/.rvm/gems/ruby-1.9.3-p392-railsexpress@workbench-api/gems/pg_power-1.5.0/lib/pg_power/create_index_concurrently.rb:82:in
> `add_index''
> /home/ben/git/workbench-api/db/migrate/20130723195953_add_index_to_events.rb:3:in
> `chang...