diff --git a/db/migrate/20230221145226_remove_mascots_safe_mode_only.rb b/db/migrate/20230221145226_remove_mascots_safe_mode_only.rb new file mode 100644 index 000000000..f3c2b8a33 --- /dev/null +++ b/db/migrate/20230221145226_remove_mascots_safe_mode_only.rb @@ -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 diff --git a/db/seeds.rb b/db/seeds.rb index 5aefcc9a6..79f077c10 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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 diff --git a/db/structure.sql b/db/structure.sql index bb415aae7..86ff525c4 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -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');