Migration generator generates migrations with trailing white space
Reported by Betelgeuse | November 19th, 2009 @ 09:59 PM
git diff doesn't like trailing white space. Here's a couple of places I have noticed railing white space
Between two create_table calls:
+class HoboMigration4 < ActiveRecord::Migration
+ def self.up
+ create_table :model3s do |t|
+ t.string :name
+ t.datetime :created_at
+ t.datetime :updated_at
+ end
+
+ create_table :model2s do |t|
+ t.string :name
+ t.datetime :created_at
+ t.datetime :updated_at
+ end
+ end
Between change_column calls for two different models:
+class HoboMigration5 < ActiveRecord::Migration
+ def self.up
+ change_column :model3s, :name, :string, :limit => 255, :null => false
+
+ change_column :model2s, :name, :string, :limit => 255, :null => false
+ end
+
+ def self.down
+ change_column :model3s, :name, :string
+
+ change_column :model2s, :name, :string
+ end
+end
Comments and changes to this ticket
-
Bryan Larsen November 20th, 2009 @ 03:03 PM
- State changed from new to resolved
(from [7fa236b0354a0b286196b0491f4dd182068b88cf]) [#549 state:resolved] remove trailing spaces from migrations http://github.com/tablatom/hobo/commit/7fa236b0354a0b286196b0491f4d...
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.
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
Tags
Referenced by
- 549 Migration generator generates migrations with trailing white space (from [7fa236b0354a0b286196b0491f4dd182068b88cf]) [#549 s...