Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indenting in migration generator #5616

Merged
merged 1 commit into from Mar 28, 2012
Merged

Fix indenting in migration generator #5616

merged 1 commit into from Mar 28, 2012

Conversation

cbartlett
Copy link
Contributor

$ rails generate migration remove_foo_from_bars foo:string

This currently generates:

  def up
    remove_column :bars, :foo
      end

Fix it:

  def up
    remove_column :bars, :foo
  end

    $ rails generate migration remove_foo_from_bars foo:string

This currently generates:

      def up
        remove_column :bars, :foo
          end

Fix it:

      def up
        remove_column :bars, :foo
      end
@tpope
Copy link
Contributor

tpope commented Mar 27, 2012

+1. We ran into this today and it's a super simple fix.

@kurko
Copy link

kurko commented Mar 27, 2012

+1

spastorino added a commit that referenced this pull request Mar 28, 2012
Fix indenting in migration generator
@spastorino spastorino merged commit a3e5b7b into rails:master Mar 28, 2012
spastorino added a commit that referenced this pull request Mar 28, 2012
Fix indenting in migration generator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants