20230725213448_add_image_description_to_preview_cards.rb 324 B

12345678910111213
  1. # frozen_string_literal: true
  2. class AddImageDescriptionToPreviewCards < ActiveRecord::Migration[7.0]
  3. disable_ddl_transaction!
  4. def up
  5. safety_assured { add_column :preview_cards, :image_description, :string, default: '', null: false }
  6. end
  7. def down
  8. remove_column :preview_cards, :image_description
  9. end
  10. end