docbrown/db/migrate/20211019151431_add_default_feed_to_users_settings.rb
Arit Amana 55a6bc3644
Allow users to choose their default Home and Tags-View Feed (Part 1) (#15128)
* add new column & define enums

* add new column & define enums

* add tests; improve enum naming

* complete specs update 😅

* discard changes to schema.rb

* rename column name more appropriately

* update specs

* update specs properly 🤦🏾‍♀️

* Please Travis do the thing

* Add DB schema diff

Co-authored-by: Jamie Gaskins <jgaskins@hey.com>
2021-10-20 18:02:59 -04:00

5 lines
179 B
Ruby

class AddDefaultFeedToUsersSettings < ActiveRecord::Migration[6.1]
def change
add_column :users_settings, :config_homepage_feed, :integer, default: 0, null: false
end
end