StanM
StanM

Reputation: 869

Connecting directly to database with a ruby script

I am using heroku with Ruby on Rails. The data for my app however has to be copied from a different database. Initially I created the script in perl, but as I found out I cannot install the DBI perl module on the Heroku instance easily.

So right now I am trying to create a ruby script and then set it up on Heroku Scheduler to duplicate a subset of information to heroku database for me to run my app off of it.

I am not sure which gem I can use for my script though. I have found Sequel which has not had any work done on it for a while. As well as ruby-DBI, That seems to have been updated in 2009. Are there ay other gems I could use or is it better to use one of the above. Both of the databases I will use are Postgres.

Upvotes: 0

Views: 477

Answers (1)

Praveen Angyan
Praveen Angyan

Reputation: 7265

The sequel gem has commits as recent as 15 days. This would probably be your best choice.

Upvotes: 3

Related Questions