* Add: #920 アンテナ・リストに「お気に入りに登録」設定 * Fix test * Fix test * Add fedibird capabilities * Add kmyblue_favourite_antenna
This commit is contained in:
parent
ee49518125
commit
9201eb151b
22 changed files with 294 additions and 29 deletions
|
@ -0,0 +1,17 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddFavouriteToListsAndAntennas < ActiveRecord::Migration[7.2]
|
||||
class Antenna < ApplicationRecord; end
|
||||
|
||||
def up
|
||||
add_column :lists, :favourite, :boolean, null: false, default: true
|
||||
add_column :antennas, :favourite, :boolean, null: false, default: true
|
||||
|
||||
Antenna.where(insert_feeds: true).in_batches.update_all(favourite: false)
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :lists, :favourite
|
||||
remove_column :antennas, :favourite
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue