Created
March 1, 2014 00:40
-
-
Save gbalbuena/9282890 to your computer and use it in GitHub Desktop.
Rails Firebird database setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Contact < ActiveRecord::Base | |
self.primary_key = 'idcontact' | |
self.table_name = 'CONTACTS' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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