Displaying 20 results from an estimated 10000 matches similar to: "How to use Postgres schemas in Rails app to separate data"
2006 Jan 25
1
postgres schemas as rails envs
Played around with rails on mysql a little bit. Now I''m looking at rails on postgres, and
postgres has schemas. Wondering if it''s appropriate to create *schemas* for my three db
evironments (development, test, production) rather than separate dbs?
b
2006 Apr 07
0
Migrations & Postgres: Change column not functional?
I''ve got a MySQL app, which I''m moving to a new server which is using
Postgres. This seems like the perfect application of migrations. (Note: I
don''t mean "using migrations to switch from MySQL to Postgres" so much as
"Hey, I''ve _been_ using migrations all along, and this is where I cash in".)
There were some odd bugs when working with the
2006 Mar 27
5
Fixtures, Postgres & Constraints
Anyone have any tips for handling postgres constraints when using
fixtures to load the database, other than to sort out the proper
insertion orders or leaving the constraints out? I''d prefer not to do
the former since I''d rather use my app to generate my fixture data
(using a dump_fixtures task) and I''d prefer not to do the latter
because leaving out constraints till the
2007 Feb 03
1
Postgres + tsearch2, migrations, and unit testing
I''m sure people have encountered this before, but I''ve been
unsuccessful at finding anything about it.
Basically, I got a rails app that uses postgres and tsearch2 for some
full text indexing and I''d like to be performing unit tests. Now,
there''s the whole deal of how to get the test database to load all the
tsearch2 information properly.
I tried to come up
2012 Oct 05
2
heroku rake db:drop error PG::Error: FATAL: permission denied for database "postgres"
How to empty DB in heroku<http://stackoverflow.com/questions/4820549/how-to-empty-db-in-heroku>
I have a Postgres database on Heroku. It is one of the free beta ones.
Locally, when testing, I often run rake db:drop && rake db:create && rake
db:migrate as a way to reset the database.
However, when I try to run this on Heroku, I get the error:\[code\]Couldn''t
drop
2006 Jul 14
3
postgres migration notices
When I run "rake" using a postgres 8.1 database, I get a bunch of these notices.
NOTICE: CREATE TABLE will create implicit sequence
"categories_id_seq" for serial column "categories.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"categories_pkey" for table "categories"
How can I avoid those? I take it I need to modify the
2006 Jun 11
0
postgres fixtures and sequence id field
Hi
I''ve a problem testing my application.
Basicly when tests try to load the fixture in my postgresql database I
obtain the error
currval of sequence "my sequence name" is not yet defined in this session
The problem is the ID field: basicly the fixtures try to add
explicitly a defined ID but postgres don''t like this, even if I build
a brand new DB and try to push the
2008 Jan 05
0
[Repost, with Formatting] Trying to understand unicode character entry, goes into postgres DB backing rails, saved to yaml as \xc4\x81
Apologies on unformatted send previously, i hit Enter and the web UI
posted, to my chagrin.
1. Examine the Unicode standard''s code page collection for "Latin
small letter a with macron".
2. Nets U0100.pdf
3. "Latin small letter a with macron" appears on chart as 0101. This
is a hexidemial number which points to U+0101 as its code point.
Converting 0101 to decimal
2006 Mar 13
0
Hieraki2 status quiestion and postgres schema
Hi,
I am trying to figure out the status of Hieraki project. It seems
that the
software in use in manuals.rubyonrails.com is old and the new(er)
version
is quite different. Is this correct? I am somehow confused because in
seems
that the project wiki/track is under "spam attack" ( http://
www.hieraki.org/trac/timeline ).
Also it seems that there is only mysql schema for the
2010 Mar 10
0
Postgres plpgsql is created by default in new version, but schema dump tries to create it
As of some recent version of Postgres, plpgsql is created for new
databases by default, but the sql schema export
(config.active_record.schema_format = :sql) expots a create command in
development_structure.sql, resulting in an error.
CREATE PROCEDURAL LANGUAGE plpgsql;
I could not find the version this changed in, however it is noted
here:
2006 Dec 03
2
How To Create Database Tables With Merb 0.0.7?
Howdy,
I just gem unpacked merb and have configured the sample_app to use an
sqlite3 database. I see that the Rakefile has a task named "schema",
but it points to /dist/schema/schema1.rb", which doesn''t exist. I
copied /dist/schema/schema1.rb to /dist/schema/schema.rb then ran
"rake schema". What''s the recommended way to create the database
tables?
2005 Oct 29
0
postgres 8.0, PQsetdbLogin() in -lpq... no
People,
I got rails talking to PostgreSQL 8.0 on my Mac!
Once upon a time:
I''m on a Mac.
I want to use postqreSQL 8.0 to backend my rails.
I tried a gem install...
zmac11:/cd/rubythings/ruby-postgres oracle$
zmac11:/cd/rubythings/ruby-postgres oracle$
zmac11:/cd/rubythings/ruby-postgres oracle$
zmac11:/cd/rubythings/ruby-postgres oracle$ gem install postgres
ERROR: While executing
2007 Mar 05
2
SOLVED:Re: How to select postgres for usage instead postgres-pr?
Figured it out chaps..not to worry!!!
--
Regards
Andrew
On 05/03/07, Andrew Madu <andrewmadu-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> Hi,
> further to my additional email the gem build for postgres did not work, so
> I downloaded and copied postgres.so into:
>
> C:\pgRails\lib\ruby\site_ruby\1.8\i386-msvcrt
>
> Again, how do I point rails to using this
2006 Apr 20
1
Unable to connect to postgres on Fedora Core 5
I have been struggling for hours trying to connect Rails to postgresql.
I have trawled google results - all to no avail! I have installed the
postgres gem but it doesn''t appear to install properly:
# gem install postgres
Attempting local installation of ''postgres''
Local gem file not found: postgres*.gem
Attempting remote installation of ''postgres''
2009 Jul 06
1
[PATCH server] add ipv6 postgres trust
If management server has ipv6 enabled and postgres is not configured to allow localhost access via ::1 the postgres service will fail.
---
installer/modules/ovirt/manifests/postgres.pp | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/installer/modules/ovirt/manifests/postgres.pp b/installer/modules/ovirt/manifests/postgres.pp
index 36bcdc0..12b7764 100644
---
2006 Jan 20
3
postgres db setup
All of the tutorials and the Agile book use MySQL and I''ve got that
working. I am now trying to use PostgreSQL and can''t seem to get going.
Is my problem the db setup in postgresql?
I have installed postgres-pr
The error message when I try to access http://localhost:3000/clients
when using PostgreSQL (MySQL works fine)
ActiveRecord::StatementInvalid (RuntimeError:
ERROR
2006 Jul 31
3
PostgreSQL, postgres gem, rails2.pdf, http://ruby.scripting.ca/postgres/ confusion...
Hello people...
In the rails2.pdf Dave T says:
Rails works with the DB2, MySQL, Oracle, Postgres,...
The database drivers are all written in C and are primarily distributed in
source form.
Then he lists this site:
http://ruby.scripting.ca/postgres/
Then he says,
There is a pure-Ruby version of the Postgres adapter available. Download
postgres-pr from the Ruby-DBI page at
2009 Feb 07
2
installing ruby-postgres gem
I''m starting to look at postgres because I''m going to need it for its
GIS extensions. But I run in into a problem when trying to install the
ruby-postgres gem. I get this error
Building native extensions. This could take a while...
ERROR: Error installing ruby-postgres:
ERROR: Failed to build gem native extension.
blah
blah
blah etc
postgres.c:31: error: conflicting types
2009 Jun 23
1
[PATCH server] add postgres permissions requires prior to starting service
Give this one a try which will require the user/hosts permissions to be setup prior to starting postgres
---
installer/modules/ovirt/manifests/postgres.pp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/installer/modules/ovirt/manifests/postgres.pp b/installer/modules/ovirt/manifests/postgres.pp
index c46b360..381d67c 100644
---
2006 Jan 26
0
If you want to disconnect a database properly, there is the code:)!!!
Hi,
We have worked on a problem of connection: Connect to
two databases with a single ActiveRecord::Base model
class within the same action
The main difficulty is how to disconnect the actual
connection properly and then let the ActiveRecord
establishes a new one.
The actual function "remove_connection" removes the
connection, but its doesn''t unbind the link between
rails and