summaryrefslogtreecommitdiffstats
path: root/db/migrate/20170302015225_change_attachments_digest_limit_to_64.rb
blob: f7e0018aae1df2a009ba4a0d0f5aec0a68b68aff (plain)
1
2
3
4
5
6
7
8
9
class ChangeAttachmentsDigestLimitTo64 < ActiveRecord::Migration[4.2]
  def up
    change_column :attachments, :digest, :string, limit: 64
  end

  def down
    change_column :attachments, :digest, :string, limit: 40
  end
end