Files
openfoodnetwork/db/migrate/20230522120633_create_custom_tabs.rb
2023-05-25 09:19:51 +02:00

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