implements #2658: private forum topics

This commit is contained in:
Albert Yi
2016-10-24 16:56:18 -07:00
parent 0757f201a0
commit 589df5f301
10 changed files with 121 additions and 60 deletions

View File

@@ -0,0 +1,5 @@
class AddMinLevelToForumTopics < ActiveRecord::Migration
def change
add_column :forum_topics, :min_level, :integer, :default => 0, :null => false
end
end

View File

@@ -2210,7 +2210,8 @@ CREATE TABLE forum_topics (
text_index tsvector NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
category_id integer DEFAULT 0 NOT NULL
category_id integer DEFAULT 0 NOT NULL,
min_level integer DEFAULT 0 NOT NULL
);
@@ -7456,3 +7457,5 @@ INSERT INTO schema_migrations (version) VALUES ('20160919234407');
INSERT INTO schema_migrations (version) VALUES ('20161018221128');
INSERT INTO schema_migrations (version) VALUES ('20161024220345');