diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-21 19:12:04 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-21 19:12:04 -0500 |
commit | 1575d744fb45605b918f75ebb9ea67e53cb774a2 (patch) | |
tree | 3ff2eb9e0f70e49933757ec39d8c12ec762a241b /db/migrate | |
parent | e503d655859a7541141fdf93e65edd10d0340fd3 (diff) |
Add dedidcated boosts timeline list
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20200923000003_add_reblogs_flag_to_lists.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20200923000003_add_reblogs_flag_to_lists.rb b/db/migrate/20200923000003_add_reblogs_flag_to_lists.rb new file mode 100644 index 000000000..bb6bcc6c2 --- /dev/null +++ b/db/migrate/20200923000003_add_reblogs_flag_to_lists.rb @@ -0,0 +1,8 @@ +class AddReblogsFlagToLists < ActiveRecord::Migration[5.2] + def change + safety_assured do + add_column :lists, :reblogs, :boolean, default: false, null: false + add_index :lists, :id, name: :lists_reblog_feeds, where: '(reblogs = TRUE)' + end + end +end |