Skip to content

Instantly share code, notes, and snippets.

@andoneve
Created August 2, 2013 13:54
Show Gist options
  • Save andoneve/6140065 to your computer and use it in GitHub Desktop.
Save andoneve/6140065 to your computer and use it in GitHub Desktop.
class ChangeColumn < ActiveRecord::Migration
def change
def up
change_column :resources, :summary, :text
end
def down
change_column :resources, :summary, :string
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment