Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozgun/dd23917693daa4fe5ad4 to your computer and use it in GitHub Desktop.
Save ozgun/dd23917693daa4fe5ad4 to your computer and use it in GitHub Desktop.
text to medium Rails migration
class ConvertTextToMediumInPostAndPageTranslations < ActiveRecord::Migration
def up
change_column :post_translations, :text, :text, :limit => 64.kilobytes + 1
change_column :page_translations, :text, :text, :limit => 64.kilobytes + 1
end
def down
change_column :post_translations, :text, :text
change_column :page_translations, :text, :text
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment