Skip to content

Commit

Permalink
VACMS-19450: Banner model migration (#19069)
Browse files Browse the repository at this point in the history
* VACMS-19450: Adds database migration.

* VACMS0-19450: Adds schema.
  • Loading branch information
dsasser authored Oct 25, 2024
1 parent c76f379 commit 5dda35c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
20 changes: 20 additions & 0 deletions db/migrate/20241023222045_create_banners.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
class CreateBanners < ActiveRecord::Migration[7.1]
def change
create_table :banners do |t|
t.integer :entity_id, null: false
t.string :entity_bundle
t.string :headline
t.string :alert_type
t.boolean :show_close
t.text :content
t.jsonb :context
t.boolean :operating_status_cta
t.boolean :email_updates_button
t.boolean :find_facilities_cta
t.boolean :limit_subpage_inheritance

t.timestamps
end
add_index :banners, :entity_id
end
end
19 changes: 18 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5dda35c

Please sign in to comment.