mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
12 lines
281 B
Ruby
12 lines
281 B
Ruby
class CreateCustomTabs < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :custom_tabs do |t|
|
|
t.string :title
|
|
t.text :content
|
|
|
|
t.timestamps
|
|
end
|
|
add_reference :custom_tabs, :enterprise, foreign_key: { on_delete: :cascade }, index: true
|
|
end
|
|
end
|