ROR connect sql server
JRuby
gem 'activerecord-jdbc-adapter'
jruby
ActiveRecord::Base.establish_connection( :adapter => "jdbc" , :database => "AAAAA" , :host => "127.0.0.1" , :username => "xxxxxxx" , :password => "xxxxxxx" , :driver => "com.microsoft.sqlserver.jdbc.SQLServerDriver" , :url => "jdbc:sqlserver://127.0.0.1;databaseName=AAAAA" ) |
rails
development: host: GUNDAM adapter: jdbc username: xxxxxx password: xxxxxx driver: com.microsoft.sqlserver.jdbc.SQLServerDriver url: jdbc :sqlserver :// 127.0.0.1 ;databaseName= AAAAAA |
Ruby
https://github.com/rails-sqlserver/activerecord-sqlserver-adapter