2023-08-03 15:41:51 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddImageDescriptionToPreviewCards < ActiveRecord::Migration[7.0]
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2024-01-10 11:35:06 +01:00
|
|
|
safety_assured { add_column :preview_cards, :image_description, :string, default: '', null: false }
|
2023-08-03 15:41:51 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :preview_cards, :image_description
|
|
|
|
end
|
|
|
|
end
|