I have a java application, and I want to use rails migrations for this.
What are the steps to get this working?
I have done this so far:
1. installed jruby
2. installed the following gems: rspec, cucumber, rake
Do I install rails or just activerecord?
Any suggestions on folder structure to store the Rakefile? I’m assuming rake will only work on the same path where the rakefile is?
How do I tell it my db connection information?
Here’s a succinct article that I believe answers all of your questions: http://community.active.com/blogs/productdev/2011/02/28/using-activerecord-3-without-rails
It talks about using AR with Sinatra but you’ll see that everything is easily adapted to your problem.