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

Format ar migrate #1182

Merged
merged 2 commits into from Mar 25, 2013
Merged

Format ar migrate #1182

merged 2 commits into from Mar 25, 2013

Conversation

chiastolite
Copy link
Contributor

using activerecord

$ padrino g model bar title:string description:text

before: unformatted...

class CreateFoos < ActiveRecord::Migration
  def self.up
create_table :foos do |t|
  t.string :title
      t.text :description
  t.timestamps
end
  end

  def self.down
    drop_table :foos
  end
end

after: formatted!

class CreateFoos < ActiveRecord::Migration
  def self.up
    create_table :foos do |t|
      t.string :title
      t.text :description
      t.timestamps
    end
  end

  def self.down
    drop_table :foos
  end
end

DAddYE added a commit that referenced this pull request Mar 25, 2013
@DAddYE DAddYE merged commit da0bd6f into padrino:master Mar 25, 2013
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

2 participants