You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20150921210243_change_wiki_contents_comments_limit_to_1024.rb 476B

1234567891011
  1. class ChangeWikiContentsCommentsLimitTo1024 < ActiveRecord::Migration[4.2]
  2. def self.up
  3. change_column :wiki_content_versions, :comments, :string, :limit => 1024, :default => ''
  4. change_column :wiki_contents, :comments, :string, :limit => 1024, :default => ''
  5. end
  6. def self.down
  7. change_column :wiki_content_versions, :comments, :string, :limit => 255, :default => ''
  8. change_column :wiki_contents, :comments, :string, :limit => 255, :default => ''
  9. end
  10. end