Created
November 27, 2013 08:42
-
-
Save ozgun/7672578 to your computer and use it in GitHub Desktop.
Rails migration: text to longtext (MySQL)
This file contains 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 ChangeStoreSettingsToLongtext < ActiveRecord::Migration | |
def up | |
change_column :site_configs, :store_settings, :longtext | |
end | |
def down | |
change_column :site_configs, :store_settings, :text | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment