mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
Give regular users a delete button. If they click it, their post will be revised to
say it was deleted.
This commit is contained in:
5
db/migrate/20130207200019_add_user_deleted_to_posts.rb
Normal file
5
db/migrate/20130207200019_add_user_deleted_to_posts.rb
Normal file
@ -0,0 +1,5 @@
|
||||
class AddUserDeletedToPosts < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :posts, :user_deleted, :boolean, null: false, default: false
|
||||
end
|
||||
end
|
@ -1798,7 +1798,8 @@ CREATE TABLE posts (
|
||||
spam_count integer DEFAULT 0 NOT NULL,
|
||||
illegal_count integer DEFAULT 0 NOT NULL,
|
||||
inappropriate_count integer DEFAULT 0 NOT NULL,
|
||||
last_version_at timestamp without time zone NOT NULL
|
||||
last_version_at timestamp without time zone NOT NULL,
|
||||
user_deleted boolean DEFAULT false NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@ -4569,4 +4570,6 @@ INSERT INTO schema_migrations (version) VALUES ('20130203204338');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130204000159');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130205021905');
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130205021905');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130207200019');
|
Reference in New Issue
Block a user