Add new upload limit system (fix #4234).

This commit is contained in:
evazion
2020-01-23 18:14:30 -06:00
parent 3d6084338c
commit 18affeb4e9
9 changed files with 196 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
class AddUploadPointsToUsers < ActiveRecord::Migration[6.0]
def change
add_column :users, :upload_points, :integer, null: false, default: 1000
end
end

View File

@@ -2192,7 +2192,8 @@ furry -rating:s'::text,
bit_prefs bigint DEFAULT 0 NOT NULL,
last_ip_addr inet,
unread_dmail_count integer DEFAULT 0 NOT NULL,
theme integer DEFAULT 0 NOT NULL
theme integer DEFAULT 0 NOT NULL,
upload_points integer DEFAULT 1000 NOT NULL
);
@@ -7366,6 +7367,7 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200117220602'),
('20200118015014'),
('20200119184442'),
('20200119193110');
('20200119193110'),
('20200123184743');