change_attachments_file_size_limit.diff

Go MAEDA, 2015-07-25 04:25

Download (559 Bytes)

View differences:

db/migrate/20150725020314_change_attachments_file_size_limit.rb (working copy)
1
class ChangeAttachmentsFileSizeLimit < ActiveRecord::Migration
2
  def up 
3
    change_column :attachments, :filesize, :integer, :limit => 8
4
  end
5

  
6
  def down
7
    change_column :attachments, :filesize, :integer, :limit => 4
8
  end
9
end