summaryrefslogtreecommitdiff
path: root/db/migrate/20140617183707_create_forumthreads.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20140617183707_create_forumthreads.rb')
-rw-r--r--db/migrate/20140617183707_create_forumthreads.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20140617183707_create_forumthreads.rb b/db/migrate/20140617183707_create_forumthreads.rb
new file mode 100644
index 0000000..830b5f2
--- /dev/null
+++ b/db/migrate/20140617183707_create_forumthreads.rb
@@ -0,0 +1,17 @@
+class CreateForumthreads < ActiveRecord::Migration
+ def change
+ create_table :forumthreads do |t|
+ t.string :title
+ t.text :content
+ t.boolean :sticky, :default => false
+ t.boolean :locked, :default => false
+
+ t.references :user_author
+ t.references :user_editor
+
+ t.references :forum
+
+ t.timestamps null: true
+ end
+ end
+end