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.

20151020182334_change_attachments_filesize_limit_to_8.rb 310B

123456789
  1. class ChangeAttachmentsFilesizeLimitTo8 < ActiveRecord::Migration[4.2]
  2. def self.up
  3. change_column :attachments, :filesize, :integer, :limit => 8, :default => 0, :null => false
  4. end
  5. def self.down
  6. change_column :attachments, :filesize, :integer, :limit => 4, :default => 0, :null => false
  7. end
  8. end