summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMrYummy <elemental428@gmail.com>2017-05-28 17:40:50 -0400
committerMrYummy <elemental428@gmail.com>2017-06-18 13:11:36 -0400
commit2c02a797b816f09460b5b3e49fb3466461ca6f6c (patch)
tree9220c4b17077dc4e8fa37f9a92156dc82fa23404 /db
parent1b4a270038cb5055be79269fff07fab92a6c5d92 (diff)
Added Necropost Warning
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170409135858_add_necro_length_to_forums.rb5
-rw-r--r--db/schema.rb43
2 files changed, 27 insertions, 21 deletions
diff --git a/db/migrate/20170409135858_add_necro_length_to_forums.rb b/db/migrate/20170409135858_add_necro_length_to_forums.rb
new file mode 100644
index 0000000..53199e4
--- /dev/null
+++ b/db/migrate/20170409135858_add_necro_length_to_forums.rb
@@ -0,0 +1,5 @@
+class AddNecroLengthToForums < ActiveRecord::Migration
+ def change
+ add_column :forums, :necro_length, :integer
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index b38ae38..353c482 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,10 +11,10 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20170319193517) do
+ActiveRecord::Schema.define(version: 20170409135858) do
create_table "blogposts", force: :cascade do |t|
- t.string "title"
+ t.string "title", limit: 191
t.text "content", limit: 65535
t.integer "user_author_id", limit: 4
t.integer "user_editor_id", limit: 4
@@ -32,18 +32,19 @@ ActiveRecord::Schema.define(version: 20170319193517) do
end
create_table "forumgroups", force: :cascade do |t|
- t.string "name"
+ t.string "name", limit: 191
t.integer "position", limit: 4
t.integer "role_read_id", limit: 4
t.integer "role_write_id", limit: 4
end
create_table "forums", force: :cascade do |t|
- t.string "name"
+ t.string "name", limit: 191
t.integer "position", limit: 4
t.integer "role_read_id", limit: 4
t.integer "role_write_id", limit: 4
t.integer "forumgroup_id", limit: 4
+ t.integer "necro_length", limit: 4, default: -1
end
create_table "forums_labels", id: false, force: :cascade do |t|
@@ -52,7 +53,7 @@ ActiveRecord::Schema.define(version: 20170319193517) do
end
create_table "forumthreads", force: :cascade do |t|
- t.string "title"
+ t.string "title", limit: 191
t.text "content", limit: 65535
t.boolean "sticky", default: false
t.boolean "locked", default: false
@@ -65,29 +66,29 @@ ActiveRecord::Schema.define(version: 20170319193517) do
end
create_table "info", force: :cascade do |t|
- t.string "title"
+ t.string "title", limit: 191
t.text "content", limit: 65535
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "labels", force: :cascade do |t|
- t.string "name"
- t.string "color"
+ t.string "name", limit: 191
+ t.string "color", limit: 191
end
create_table "register_tokens", force: :cascade do |t|
- t.string "uuid", null: false
- t.string "token", null: false
- t.string "email", null: false
+ t.string "uuid", limit: 191, null: false
+ t.string "token", limit: 191, null: false
+ t.string "email", limit: 191, null: false
end
add_index "register_tokens", ["uuid"], name: "index_register_tokens_on_uuid", unique: true, using: :btree
create_table "roles", force: :cascade do |t|
- t.string "name"
+ t.string "name", limit: 191
t.integer "value", limit: 4
- t.string "color"
+ t.string "color", limit: 191
end
create_table "badges", force: :cascade do |t|
@@ -97,7 +98,7 @@ ActiveRecord::Schema.define(version: 20170319193517) do
end
create_table "sessions", force: :cascade do |t|
- t.string "session_id", null: false
+ t.string "session_id", limit: 191, null: false
t.text "data", limit: 65535
t.datetime "created_at"
t.datetime "updated_at"
@@ -116,14 +117,14 @@ ActiveRecord::Schema.define(version: 20170319193517) do
end
create_table "users", force: :cascade do |t|
- t.string "uuid", null: false
- t.string "name", null: false
- t.string "password_digest", null: false
- t.string "ign", null: false
- t.string "email", null: false
+ t.string "uuid", limit: 191, null: false
+ t.string "name", limit: 191, null: false
+ t.string "password_digest", limit: 191, null: false
+ t.string "ign", limit: 191, null: false
+ t.string "email", limit: 191, null: false
t.text "about", limit: 65535
- t.string "last_ip"
- t.string "skype"
+ t.string "last_ip", limit: 191
+ t.string "skype", limit: 191
t.boolean "skype_public", default: false
t.string "youtube"
t.string "youtube_channelname"