Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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