Permalink
Browse files

got rid of unworking migrations

  • Loading branch information...
amina196 committed May 4, 2012
1 parent 17c5a29 commit 5077906d5b56ff3e819517020471725222f7bcd1
@@ -1,9 +1,4 @@
class ChangeDataTypeForMicropostNbPassengers < ActiveRecord::Migration
def change
- change_table :microposts do |t|
- t.change :nb_passengers, :integer
- end
- end
-
-
+
end
@@ -1,14 +1,6 @@
class ModifyNumberPassengerType < ActiveRecord::Migration
- def up
-
- rename_column :microposts, :nb_passengers, :nb_passengers_string
- add_column :microposts, :nb_passengers, :integer
-
- Micropost.reset_column_information
- Micropost.find(:all).each { |post| post.update_attribute(:nb_passengers, contact.nb_passengers_string) }
- remove_column :contacts, :nb_passengers_string
- end
-
+ def change
+
end
end

0 comments on commit 5077906

Please sign in to comment.