Ruby on Rails
Informix (Version #168)
Prerequisites
- Install Ruby/Informix
- Install Rails/Informix
Configuration
development:
adapter: informix
database: dbname@dbservername
username: you
password: secret
Usage notes
- If no dbserver is specified, defaults to INFORMIXSERVER
- If no username or password are specified, defaults to the user running the web server and his/her credentials
- A sequence must be created for each table in the form #{tablename}_seq:
create table customers(id serial, name varchar(40));
create sequence customers_seq;
- BYTE/TEXT columns must allow NULLs
- Prefer Informix 10 over Informix 9. Rails/Informix makes use of the SKIP option for pagination, which is only available since Informix 10.
Example
An example of an Informix on Rails application by Guy Bowerman.
Category:DatabaseDrivers
Prerequisites
- Install Ruby/Informix
- Install Rails/Informix
Configuration
development:
adapter: informix
database: dbname@dbservername
username: you
password: secret
Usage notes
- If no dbserver is specified, defaults to INFORMIXSERVER
- If no username or password are specified, defaults to the user running the web server and his/her credentials
- A sequence must be created for each table in the form #{tablename}_seq:
create table customers(id serial, name varchar(40));
create sequence customers_seq;
- BYTE/TEXT columns must allow NULLs
- Prefer Informix 10 over Informix 9. Rails/Informix makes use of the SKIP option for pagination, which is only available since Informix 10.
Example
An example of an Informix on Rails application by Guy Bowerman.
Category:DatabaseDrivers
Created on December 29, 2006 21:12
by
Santana (189.132.66.30)