How do I change the Rails version I'm using? I assume that is
different from the version of gems...
In the config/environment.rb file just change the version number in a
liine that looks like this:
RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
How do I identify deprecated code?
That's where the tests come in. If you have good test coverage just
run the test and watch the deprecation messages that print to the
screen. If you don't have tests you could try running the app in
development mode and watching the server log as you use the
application. I'm pretty sure you'll see the deprecation messages
There's a rails deprecation list here, but don't consider it
I've seen a few of the feature demonstrations of 2.0. Is there any
across-the-board compelling reason to run 2.0 over 1.2.6?
If the application is in active development then I would recommend
updating now so you can take advantage of the API improvements and get
into the "new" way of doing things. If the app is running along
nicely and you are not working on it right now then I would say there
is no rush. However, don't wait too long because making a large
version jump could be painful.
Last, has anyone written a tool yet to swallow up an existing schema
(preferably PostgreSQL) and generate a base for RoR migration code?
I'd like to use rails on some existing 100+ table DBs that do not
conform to the naming conventions.
Run "rake db:schema:dump" take the file that it creates and make it