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.

20100705164950_change_changes_path_length_limit.rb 466B

1234567891011121314
  1. class ChangeChangesPathLengthLimit < ActiveRecord::Migration[4.2]
  2. def self.up
  3. # these are two steps to please MySQL 5 on Win32
  4. change_column :changes, :path, :text, :default => nil, :null => true
  5. change_column :changes, :path, :text, :null => false
  6. change_column :changes, :from_path, :text
  7. end
  8. def self.down
  9. change_column :changes, :path, :string, :default => "", :null => false
  10. change_column :changes, :from_path, :string
  11. end
  12. end