Displaying 20 results from an estimated 800 matches similar to: "postgres and rake"
2005 Oct 28
3
PostgreSQL. Multiply schemas in one database. How to?
Hi all.
I am using PostgreSQL in my current project and I have couple of questions
on this topic.
Previously I have used 3 databases for project. i.e.
megaproject_development, megaproject_test and megaproject_development.
But I don''t like this variant because of ''rake dump_db_structure'' writes a
lot of PostgreSQL specific data for structure file (operators, functions,
2005 Mar 06
3
permission error in rake''s clone_structure_to_test
Hello,
When I try to run "rake clone_structure_to_test" on my project, I get
the following errors:
$ rake clone_structure_to_test
(in /home/www/cedscreening)
psql:db/development_structure.sql:8: ERROR: permission denied to set
session authorization
psql:db/development_structure.sql:16: ERROR: permission denied for
schema public
psql:db/development_structure.sql:34: NOTICE: CREATE
2006 Aug 05
5
error with db:migrate
I''m new to ROR, and am working my way through the Agile Web Development
Book. In the test application, the authors tell me to test my database
connection by performing "rake db:migrate".
When I do, I get the error "Don''t know how to build task ''db:migrate''"
I''ve been looking around at the files, and I see a reference to a
2006 Feb 28
10
Salted hash login, postgresql, unit tests
Hello,
I have tried to install the salted hash login generator by following the
quick start guide at:
http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart.
Everything seems to work fine until I try to run the unit tests by doing
''rake test_units'', then I get the following error message:
<error-message>
[brasse@keso login-test]$ rake test_units
(in
2006 Mar 25
1
foreign keys on migration
I have reached a development plateau and now want to integrate some of
the rails niceties that I passed over to get the system online.
I am fooling with migrations. I am using postgresql. I put in my
migration script (at the end of the ''up'' method, the following raw sql
code...
# set up primary key restratints for PostgreSQL
execute ''ALTER TABLE ONLY
2006 Feb 05
2
Continuous Integration question (not CIA question)
On 2/5/06, Joe Van Dyk <joevandyk@gmail.com> wrote:
> On 2/4/06, Jonathan Weiss <jw@innerewut.de> wrote:
> > Joe Van Dyk wrote:
> > > Hi,
> > >
> > > I''d like to set up CIA. So I added the plugin to my app, went to my
> > > subversion server, added the post commit, added a build directory.
> > >
> > > I checked
2008 Jun 05
23
unit test question
In development and production, I''ve got postgresql constraints that
prevent deleting a CaseManager if there is a Client that belongs to that
CaseManager.
In unit tests...and obviously in my testing db, those restrictions don''t
get added.
Is it wrong to test for deleting dependent records in unit tests?
Craig
--~--~---------~--~----~------------~-------~--~----~
You received
2006 Feb 04
2
CIA question
Hi,
I''d like to set up CIA. So I added the plugin to my app, went to my
subversion server, added the post commit, added a build directory.
I checked out the code in the build directory on the svn server.
However, running rake on it fails, because the test database is empty
(i.e. no tables, so fixtures don''t load).
What''s the solution here?
2005 Sep 17
0
Postgresql + rake errors
Hi,
Using rake with Postgresql gives the following error:
psql:db/development_structure.sql:13: ERROR: must be owner of schema public
I''m using the latest version of rails and postgresql 8.0 on ruby 1.8.3
(2005-06-23) [i486-linux].
The above error occurs when rake clones my dev database to test - it
first came to my attention when I ran "rake" for my first unit tests. It
2006 Feb 23
1
PostgreSQL CASCADE not copied to test db
When the unit test harness creates a test database from the
development database, the ON DELETE CASCADE constraints I have on my
foreign keys are not copied into the test database. (I can tell by
looking at db/development_structure.sql.)
That means the fixtures can''t load/unload from the test database
properly. In other words, all my tests fail with the same error
message:
2006 Mar 05
0
rake clone_schema|structure_to_test fail
When I do ''rake clone_schema_to_test'' I get this:
(in /var/www/rails1)
rake aborted!
./db/schema.rb:34: syntax error, unexpected tCONSTANT, expecting kDO or
''{'' or ''(''
t.column "datetime", :datetime, :default => Sun Mar 05 03:19:39 MST
2006, :null => false
^
2006 Mar 02
2
Unit tests, salted hash login
Hello,
I am having some trouble running the unit tests for the salted has login
generator. I am a bit new to both ruby and rails so I am having a little
trouble deciphering the error message I get when running ''rake
test_units''. Up till the point where I try to run the unit tests I have
followed the quick start guide for the salted hash login generator
2008 May 05
2
httpd reverse proxy
I am trying to figure this out and I always seem to have trouble
configuring apache to do more than basic stuff...
I have a web server that has several cnames assigned to it.
I want srv1.tobyhouse.com to be served by apache.
I want to proxy connections to www.tobyhouse.com to cms.tobyhouse.com
(different system)
If I do this...
<VirtualHost www.tobyhouse.com:*>
ProxyPass /
2006 Jul 14
2
db:migrate question
Hi,
In my environment.rb, I have set:
config.active_record.schema_format = :ruby
Whenever I do a rake db:migrate, both db/development_structure.sql and
db/schema.rb get generated. This shouldn''t happen should it? I thought
I should only get db/schema.rb?
Thanks,
Jordan
2006 Jan 27
5
Before I write this myself, is there already an easier way?
Recently I''ve wanted to be able to take the data I''ve painstakingly
defined in my fixture files and slurp it up into my development database
so I can play with my website (locally, in development mode) with the
same data I use in my tests.
In a similar vein, I want to take the table definitions in the
development_structure.sql file and use it to re-define my development
2008 May 09
2
Apache Redirects...
I'm trying to require SSL for drupal login and admin pages and it seems
that this should work but it doesn't redirect if added to httpd.conf or
to .htaccess (I've tried both)
RewriteCond %{REQUEST_URI} ^/(user|admin)
RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [L,R]
Shouldn't this be enough so that the URL...(googling suggests that it
is)
http://cms.tobyhouse.com/user/login
2008 Dec 05
0
test:clone_structure problems with Postgres
(in C:/projects/books/TheatreTickets)
** Invoke db:test:clone_structure (first_time)
** Invoke db:structure:dump (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:structure:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone_structure
psql:db/development_structure.sql:15: ERROR: language
2005 Dec 27
4
Migrations & Unit Testing: Possible Bug in Rails?
I recently started using migrations to create the schema of a Rails
project I am working on. The database I am using for this project is
MySQL. The initial migration creates the table and also includes a
number of execute statements (to do some things like setting primary
keys, autoincrement on some columns and other messy voodoo).
Running "rake migrate" creates the database with no
2007 Sep 14
2
xdm
Trying to set up ltsp and their instructions are outdated for this
setup.
this is what I am referencing...
http://ltsp.mirrors.tds.net/pub/ltsp/docs/ltsp-4.1-en.html#AEN984
Anyway, KDM is display manager and I am only getting grey screen with X
# ps aux|grep kdm
root 4275 0.0 0.0 3036 864 ? Ss Jul01
0:00 /usr/bin/kdm -nodaemon
per the instructions...
/etc/X11/xdm/Xaccess
2006 Feb 14
2
apache virtual host
I don't ever do this...
Shouldn't this be enough to set up a virtual server in apache?
I did create an entry in /etc/hosts and in dns for this fqdn
it still gives me the contents of /var/www/html and
not /home/craig/ruby-db/th-db/public
<VirtualHost *>
DocumentRoot "/home/craig/ruby-db/th-db/public"
ServerName app-server.tobyhouse.com
<Directory