Advertisement
Guest User

Untitled

a guest
Feb 24th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. my_external_database:
  2. adapter: sqlanywhere
  3. encoding: utf-8
  4. username: (username)
  5. password: (password)
  6. server: (name of server)
  7. database: (db name)
  8. host: (IP of server)
  9.  
  10. class MyExternalModel < ActiveRecord::Base
  11. establish_connection(:my_external_database)
  12. self.table_name = '<a particular table in the db>'
  13. self.primary_key = 'primarykey'
  14. end
  15.  
  16. . /Applications/SQLAnywhere16/samples/sample_config64.sh
  17. Enter destination directory for copy of the samples [/Users/(user)/sa16_samples]:
  18. Copying samples...
  19. Done
  20.  
  21. Setting up data sources...
  22.  
  23. SQL Anywhere Data Source Utility Version 16.0.0.2041
  24. Configuration "SQL Anywhere 16 Demo" written to file /Users/(user)/.odbc.ini
  25. SQL Anywhere Data Source Utility Version 16.0.0.2041
  26. Configuration "SQL Anywhere 16 CustDB" written to file /Users/(user)/.odbc.ini
  27. Done
  28.  
  29. Setting up sample_env script...
  30. Done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement