#883 ✓invalid
Betelgeuse

rails 3 migration generator generating migration with identical up & down

Reported by Betelgeuse | December 11th, 2010 @ 12:54 PM | in Hobo 1.3 (Rails 3)

I have a model like:

class Pivot < ActiveRecord::Base
  hobo_model
  fields do
  end
  belongs_to :a, :null => :false
  belongs_to :b, :null => :false
  index [:a_id, :b_id], :unique => true
end

Now rails g hobo:migration wants to run this:

---------- Up Migration ----------
change_column :pivots, :a_id, :integer
change_column :pivots, :b_id, :integer
----------------------------------

---------- Down Migration --------
change_column :pivots, :a_id, :integer
change_column :pivots, :b_id, :integer
----------------------------------

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages