docbrown/db/migrate/20210712155135_add_section_to_navigation_links.rb
Arit Amana 3adfe7ace3
Static Sections for Site Navigation - Pt1 (#14213)
* schema file undelete description

* update with main

* update with origin

* Add "section" enum to navlink model

* create migration for section column

* create migration and data-update script

* update related rake tasks

* add scopes for default_links and other_links

* update E2E seeds

* ran migration; correct enum reference

* fix requests and model specs

* write DUS spec; fix factory and DUS

* yarn install

* address PR review comments

* fix migration; add null: false

* Remove yarn.lock from commit

* remove yarn.lock changes from commit

* sync yarn.lock with main

* newline
2021-07-14 11:01:56 -04:00

5 lines
166 B
Ruby

class AddSectionToNavigationLinks < ActiveRecord::Migration[6.1]
def change
add_column :navigation_links, :section, :integer, default: 0, null: false
end
end