Skip to content

Instantly share code, notes, and snippets.

@gbalbuena
Created March 1, 2014 00:40
Show Gist options
  • Save gbalbuena/9282890 to your computer and use it in GitHub Desktop.
Save gbalbuena/9282890 to your computer and use it in GitHub Desktop.
Rails Firebird database setup
class Contact < ActiveRecord::Base
self.primary_key = 'idcontact'
self.table_name = 'CONTACTS'
end
development-cruby:
adapter: fb
database: C:\Sites\RubyApp\db\development.fdb
username: SYSDBA
password: masterkey
host: localhost
encoding: UTF-8
create: true
development-jruby:
adapter: jdbc
username: sysdba
password: masterkey
driver: org.firebirdsql.jdbc.FBDriver
url: jdbc:firebirdsql:localhost/3050:C:\Sites\RubyApp\db\development.fdb
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.3'
gem 'activerecord-fb-adapter'
gem 'activerecord-jdbc-adapter'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment