add categories to forum topics
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddCategoryToForumTopics < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :forum_topics, :category_id, :integer, :default => 0, :null => false
|
||||
end
|
||||
end
|
||||
@@ -1780,7 +1780,8 @@ CREATE TABLE forum_topics (
|
||||
is_deleted boolean DEFAULT false NOT NULL,
|
||||
text_index tsvector NOT NULL,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
updated_at timestamp without time zone NOT NULL
|
||||
updated_at timestamp without time zone NOT NULL,
|
||||
category_id integer DEFAULT 0 NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@@ -6415,4 +6416,6 @@ INSERT INTO schema_migrations (version) VALUES ('20130417221643');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130424121410');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130506154136');
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130506154136');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20130606224559');
|
||||
Reference in New Issue
Block a user