Skip to content

Instantly share code, notes, and snippets.

Created August 7, 2013 18:56
Show Gist options
  • Save anonymous/eaa80ae70181130e4f5d to your computer and use it in GitHub Desktop.
Save anonymous/eaa80ae70181130e4f5d to your computer and use it in GitHub Desktop.
require "dm-core"
require "dm-migrations"
task migrate_edit_message do
modify_table :f_edit do
change_column :message,"text"
end
end
@namelessjon
Copy link

Try

migration :migrate_edit_message, 1 do
  up do
    modify_table :f_edit do
      change_column :message, Text
     end
  end
  down do
    # somthing
   end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment