Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_external_database:
- adapter: sqlanywhere
- encoding: utf-8
- username: (username)
- password: (password)
- server: (name of server)
- database: (db name)
- host: (IP of server)
- class MyExternalModel < ActiveRecord::Base
- establish_connection(:my_external_database)
- self.table_name = '<a particular table in the db>'
- self.primary_key = 'primarykey'
- end
- . /Applications/SQLAnywhere16/samples/sample_config64.sh
- Enter destination directory for copy of the samples [/Users/(user)/sa16_samples]:
- Copying samples...
- Done
- Setting up data sources...
- SQL Anywhere Data Source Utility Version 16.0.0.2041
- Configuration "SQL Anywhere 16 Demo" written to file /Users/(user)/.odbc.ini
- SQL Anywhere Data Source Utility Version 16.0.0.2041
- Configuration "SQL Anywhere 16 CustDB" written to file /Users/(user)/.odbc.ini
- Done
- Setting up sample_env script...
- Done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement