[Mascots] Drop safe_mode_only column

Replaced in b58707fab2
This commit is contained in:
Earlopain 2023-02-21 16:03:25 +01:00
parent f408fec54f
commit 1600ecdf77
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
3 changed files with 8 additions and 3 deletions

View File

@ -0,0 +1,5 @@
class RemoveMascotsSafeModeOnly < ActiveRecord::Migration[7.0]
def change
remove_column :mascots, :safe_mode_only, type: :boolean, default: false, null: false
end
end

View File

@ -83,7 +83,7 @@ def import_mascots
background_color: mascot["background_color"],
artist_url: mascot["artist_url"],
artist_name: mascot["artist_name"],
safe_mode_only: mascot["safe_mode_only"],
available_on_string: Danbooru.config.app_name,
active: mascot["active"],
)
end

View File

@ -998,7 +998,6 @@ CREATE TABLE public.mascots (
background_color character varying NOT NULL,
artist_url character varying NOT NULL,
artist_name character varying NOT NULL,
safe_mode_only boolean DEFAULT false NOT NULL,
active boolean DEFAULT true NOT NULL,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL,
@ -4795,6 +4794,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20230203162010'),
('20230204141325'),
('20230210092829'),
('20230219115601');
('20230219115601'),
('20230221145226');