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
#Change appropriate settings in the ActiveRecord connection and your appkey. | |
#Credits to David Workman (https://github.com/workmad3) | |
#for giving me a faster query than the find_each method | |
require 'predictionio' | |
require 'active_record' | |
require 'pg' | |
ActiveRecord::Base.establish_connection( | |
adapter: 'postgresql', |