Created
March 18, 2016 14:57
-
-
Save ozgun/dd23917693daa4fe5ad4 to your computer and use it in GitHub Desktop.
text to medium Rails migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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