docbrown/db/migrate/20220830141143_add_name_to_display_ad.rb
Ridhwana 3d3e5156a3
Add "name" field to Display Ads (#18396)
* feat: create a migration to add the display ad name column to the tanle

* feat: add a display ad name to the interface

* feat: add a display ad name after create

* feat: whoops the migration file

* feat: add a DUS to update previous Display Ads names

* fix: test

* refactor: update the name after_save

* fix: add name to params
2022-09-02 16:29:33 +02:00

5 lines
123 B
Ruby

class AddNameToDisplayAd < ActiveRecord::Migration[7.0]
def change
add_column :display_ads, :name, :string
end
end