Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env jruby
- require "java"
- require "rubygems"
- gem "ActiveRecord-JDBC"
- gem "activerecord"
- require "active_record"
- java.lang.System.setProperty("javax.net.ssl.keyStore","/Users/kyle/Projects/casttv/trunk/keystore")
- java.lang.System.setProperty("javax.net.ssl.keyStorePassword","123456")
- java.lang.System.setProperty("javax.net.ssl.trustStore","/Users/kyle/Projects/casttv/trunk/truststore")
- java.lang.System.setProperty("javax.net.ssl.trustStorePassword","123456")
- java.lang.System.setProperty("javax.net.debug","all")
- ActiveRecord::Base.establish_connection({
- "adapter" => "jdbc",
- "driver" => "com.mysql.jdbc.Driver",
- "url" => "jdbc:mysql://************/dbname?useSSL=true&requireSSL=true",
- "username" => "********",
- "password" => "****************"
- })
- class Video < ActiveRecord::Base;end
- Video.find :first
Add Comment
Please, Sign In to add comment