summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorMrYummy <elemental428@gmail.com>2017-05-28 17:46:39 -0400
committerMrYummy <elemental428@gmail.com>2017-06-18 13:11:36 -0400
commita24d26dd7c9c829b28732174ed5f5ff2d4448bfb (patch)
tree09b6a7e0b5ca523e092d17393ca68cfa66e2db57 /db
parentdb3aea185b5d21a14e61ca3c1939083103cc4fb6 (diff)
Added Website Settings
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170320195301_add_utc_time_to_users.rb5
-rw-r--r--db/migrate/20170328100851_add_header_scroll_to_users.rb5
-rw-r--r--db/migrate/20170515200733_add_dark_to_users.rb5
-rw-r--r--db/schema.rb7
-rw-r--r--db/seeds.rb48
5 files changed, 27 insertions, 43 deletions
diff --git a/db/migrate/20170320195301_add_utc_time_to_users.rb b/db/migrate/20170320195301_add_utc_time_to_users.rb
new file mode 100644
index 0000000..538357c
--- /dev/null
+++ b/db/migrate/20170320195301_add_utc_time_to_users.rb
@@ -0,0 +1,5 @@
+class AddUtcTimeToUsers < ActiveRecord::Migration
+ def change
+ add_column :users, :utc_time, :boolean, default: false
+ end
+end
diff --git a/db/migrate/20170328100851_add_header_scroll_to_users.rb b/db/migrate/20170328100851_add_header_scroll_to_users.rb
new file mode 100644
index 0000000..0db36b1
--- /dev/null
+++ b/db/migrate/20170328100851_add_header_scroll_to_users.rb
@@ -0,0 +1,5 @@
+class AddHeaderScrollToUsers < ActiveRecord::Migration
+ def change
+ add_column :users, :header_scroll, :boolean, default: false
+ end
+end
diff --git a/db/migrate/20170515200733_add_dark_to_users.rb b/db/migrate/20170515200733_add_dark_to_users.rb
new file mode 100644
index 0000000..c4bf3cc
--- /dev/null
+++ b/db/migrate/20170515200733_add_dark_to_users.rb
@@ -0,0 +1,5 @@
+class AddDarkToUsers < ActiveRecord::Migration
+ def change
+ add_column :users, :dark, :boolean, default: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 353c482..0a29b6b 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20170409135858) do
+ActiveRecord::Schema.define(version: 20170515200733) do
create_table "blogposts", force: :cascade do |t|
t.string "title", limit: 191
@@ -133,6 +133,7 @@ ActiveRecord::Schema.define(version: 20170409135858) do
t.boolean "confirmed", default: false
t.datetime "last_seen"
t.integer "role_id", limit: 4, null: false
+ t.integer "badge_id"
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "mail_own_thread_reply", default: true
@@ -140,7 +141,9 @@ ActiveRecord::Schema.define(version: 20170409135858) do
t.boolean "mail_own_blogpost_comment", default: true
t.boolean "mail_other_blogpost_comment", default: true
t.boolean "mail_mention", default: true
- t.integer "badge_id"
+ t.boolean "header_scroll", default: false
+ t.boolean "utc_time", default: false
+ t.boolean "dark", default: false
end
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
diff --git a/db/seeds.rb b/db/seeds.rb
index 06c8d10..7b7530d 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -36,7 +36,10 @@ deleted_user = User.create!(
skype_public: true,
last_ip: "0.0.0.0",
confirmed: true,
- last_seen: Time.utc(0).to_datetime
+ last_seen: Time.utc(0).to_datetime,
+ header_scroll: false,
+ utc_time: false,
+ dark: false
)
deleted_user.update_attribute(:ign, "Steve")
@@ -47,46 +50,9 @@ User.create!(
password: "123456789", # high seructity!
password_confirmation: "123456789",
role: Role.get(:superadmin),
+ header_scroll: false,
+ utc_time: false,
+ dark: false
badge: Badge.get(:donor),
confirmed: true
)
-User.create!(
- uuid: "7f52491ab5d64c11b4a43806db47a101",
- ign: "YummyRedstone",
- email: "yummy@example.com",
- password: "123456789", # high seructity!
- password_confirmation: "123456789",
- role: Role.get(:admin),
- badge: Badge.get(:lead),
- confirmed: true
-)
-User.create!(
- uuid: "d2693e9193e14e3f929ff38e1ce8df03",
- ign: "Pepich1851",
- email: "pepe@example.com",
- password: "123456789", # high seructity!
- password_confirmation: "123456789",
- role: Role.get(:superadmin),
- badge: Badge.get(:retired),
- confirmed: true
-)
-User.create!(
- uuid: "c69f8316c60a4f8ca922bda933e01acd",
- ign: "Doomblah",
- email: "doom@example.com",
- password: "123456789", # high seructity!
- password_confirmation: "123456789",
- role: Role.get(:normal),
- badge: Badge.get(:developer),
- confirmed: true
-)
-User.create!(
- uuid: "b85a91b558b0474da2a42d5dd025f9e5",
- ign: "Futsy",
- email: "futsy@example.com",
- password: "123456789", # high seructity!
- password_confirmation: "123456789",
- role: Role.get(:mod),
- badge: Badge.get(:none),
- confirmed: true
-)