summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorLogan Fick <logaldeveloper@protonmail.com>2017-10-18 18:55:52 -0400
committerLogan Fick <logaldeveloper@protonmail.com>2017-10-18 18:55:52 -0400
commit61c1f36b50a621f5112fcb06b91dec51db07f28a (patch)
tree9df57b2af9c46c0dd5bb252cb88c2a213c533951 /db
parent1ec1c09490c5f3481e87a599d81c7ae4b0227691 (diff)
parent5ab615e18f093e7654bae3c628bd3349532fdfd5 (diff)
Merge pull request #44.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20171013001146_add_public_key_to_users.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20171013001146_add_public_key_to_users.rb b/db/migrate/20171013001146_add_public_key_to_users.rb
new file mode 100644
index 0000000..a03743c
--- /dev/null
+++ b/db/migrate/20171013001146_add_public_key_to_users.rb
@@ -0,0 +1,5 @@
+class AddPublicKeyToUsers < ActiveRecord::Migration
+ def change
+ add_column :users, :public_key, :text
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 197024d..183a432 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: 20170708011014) do
+ActiveRecord::Schema.define(version: 20171013001146) do
create_table "badges", force: :cascade do |t|
t.string "name", limit: 191
@@ -153,6 +153,7 @@ ActiveRecord::Schema.define(version: 20170708011014) do
t.boolean "utc_time", default: false
t.boolean "header_scroll", default: false
t.boolean "dark", default: false
+ t.text "public_key", limit: 65535
end
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree