20200627125810_add_thumbnail_columns_to_media_attachments.rb 341 B

1234567891011
  1. class AddThumbnailColumnsToMediaAttachments < ActiveRecord::Migration[5.2]
  2. def up
  3. add_attachment :media_attachments, :thumbnail
  4. add_column :media_attachments, :thumbnail_remote_url, :string
  5. end
  6. def down
  7. remove_attachment :media_attachments, :thumbnail
  8. remove_column :media_attachments, :thumbnail_remote_url
  9. end
  10. end