From 224df6940f0f322c0cfaa8a7c6f58d0b890898df Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Mon, 17 May 2021 21:03:40 +0200 Subject: [PATCH] nixos/mastodon: use rails command instead of rake Co-Authored-By: Izorkin --- nixos/modules/services/web-apps/mastodon.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/web-apps/mastodon.nix b/nixos/modules/services/web-apps/mastodon.nix index af46f4e1927..5e24bd06ffd 100644 --- a/nixos/modules/services/web-apps/mastodon.nix +++ b/nixos/modules/services/web-apps/mastodon.nix @@ -448,10 +448,10 @@ in { join pg_namespace s on s.oid = c.relnamespace \ where s.nspname not in ('pg_catalog', 'pg_toast', 'information_schema') \ and s.nspname not like 'pg_temp%';" | sed -n 3p` -eq 0 ]; then - SAFETY_ASSURED=1 rake db:schema:load - rake db:seed + SAFETY_ASSURED=1 rails db:schema:load + rails db:seed else - rake db:migrate + rails db:migrate fi ''; path = [ cfg.package pkgs.postgresql ];