0

I have upgraded my app to rails 3.1 following Ryan Bates' instructions in Railscast Episode 282. Everything is working wonderfully except that new migrations generated are still following the old style of

class MigrationName < ActiveRecord::Migration def up end def down end end 

How do I upgrade things so new migrations are generated in the new style of:

class MigrationName < ActiveRecord::Migration def change end end 
1
  • what does rails -v say? My guess is that you updated the Gemfile but not the gem that's installed on your system. Commented Sep 26, 2011 at 14:01

1 Answer 1

3

The 3.1.0 generator only uses change if it detects a migration that adds something. Maybe you didn't call rails g migration AddSomething?

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.