nixos/mastodon: use rails command instead of rake
Co-Authored-By: Izorkin <izorkin@elven.pw>
This commit is contained in:
parent
878f011d8d
commit
224df6940f
|
@ -448,10 +448,10 @@ in {
|
||||||
join pg_namespace s on s.oid = c.relnamespace \
|
join pg_namespace s on s.oid = c.relnamespace \
|
||||||
where s.nspname not in ('pg_catalog', 'pg_toast', 'information_schema') \
|
where s.nspname not in ('pg_catalog', 'pg_toast', 'information_schema') \
|
||||||
and s.nspname not like 'pg_temp%';" | sed -n 3p` -eq 0 ]; then
|
and s.nspname not like 'pg_temp%';" | sed -n 3p` -eq 0 ]; then
|
||||||
SAFETY_ASSURED=1 rake db:schema:load
|
SAFETY_ASSURED=1 rails db:schema:load
|
||||||
rake db:seed
|
rails db:seed
|
||||||
else
|
else
|
||||||
rake db:migrate
|
rails db:migrate
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
path = [ cfg.package pkgs.postgresql ];
|
path = [ cfg.package pkgs.postgresql ];
|
||||||
|
|
Loading…
Reference in New Issue