Yep we certainly are.
Where to start....
You obviously need to download Ruby on rails.
If on a windows PC then look
here
You will need the relevant driver.
Once you have created a new rails project you edit your config/database.yml file.
Here is an Oracle version for the development connection:
Code:
development:
adapter: oracle
database: utnb12
username: df_web
password: formfill
timeout: 5000
In this file you can specify any number of connections to say 'live', 'test' etc...
'development' is the default that is run if no RAILS_ENV parameter is set.
An example migration might be to add a new column to a table. EG.
Code:
class AddVersionToGroupsTable < ActiveRecord::Migration
def self.up
add_column :GROUPS, :VERSION, :integer, :default =>1
end
def self.down
drop_column :GROUPS, :VERSION
end
end
This file was created by the command:
script/generate migration add_version_to_groups_table.
This then created a file in db/migrate directory called nnn_add_....
where nnn is the next migration.
To run the migartions you have a number of options.
rake db:migrate - will run all the required migrations
rake db:migrate VERSION=3 will run the migrations either fwds or back to '3'
rake db:migrate RAILS_ENV=prod will run the migrations on the 'prod' database as defined in the database.yml file.
My mates blog
Mr B is very useful for some other tips.
Hope this helps.
It really is the future in my meagre opinion.
google for more info.