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.

20161010081600_change_journals_notes_limit.rb 276B

123456789101112
  1. class ChangeJournalsNotesLimit < ActiveRecord::Migration[4.2]
  2. def up
  3. if ActiveRecord::Base.connection.adapter_name =~ /mysql/i
  4. max_size = 16.megabytes
  5. change_column :journals, :notes, :text, :limit => max_size
  6. end
  7. end
  8. def down
  9. # no-op
  10. end
  11. end