Sha256: f731a82e14b6ee6bf424bcc2c1851ad47678be28161ddf9b7b10a117d5bbe0a1
Contents?: true
Size: 429 Bytes
Versions: 21
Compression:
Stored size: 429 Bytes
Contents
class AddSmallAndLargeThumbnailSizes < ActiveRecord::Migration def self.up image_thumbnails = RefinerySetting.find_or_set(:image_thumbnails, {}) RefinerySetting.image_thumbnails = image_thumbnails.merge({ :small => '110x110>', :medium => '225x255>', :large => '450x450>' }) end def self.down # don't really need to reverse it, it's not destructive if you run it multiple times. end end
Version data entries
21 entries across 21 versions & 1 rubygems