add preferences and customization (#171)

This commit is contained in:
Joshua Arts
2017-05-11 09:58:51 -04:00
committed by Jesus Federico
parent 45c55efd04
commit 24c8952e59
14 changed files with 160 additions and 10 deletions

View File

@ -0,0 +1,11 @@
class AddAttachmentBackgroundToUsers < ActiveRecord::Migration
def self.up
change_table :users do |t|
t.attachment :background
end
end
def self.down
remove_attachment :users, :background
end
end

View File

@ -10,17 +10,21 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20161208185458) do
ActiveRecord::Schema.define(version: 20170510175654) do
create_table "users", force: :cascade do |t|
t.string "provider", null: false
t.string "uid", null: false
t.string "provider", null: false
t.string "uid", null: false
t.string "name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "username"
t.string "encrypted_id", null: false
t.string "encrypted_id", null: false
t.string "email"
t.string "background_file_name"
t.string "background_content_type"
t.integer "background_file_size"
t.datetime "background_updated_at"
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["encrypted_id"], name: "index_users_on_encrypted_id", unique: true
t.index ["provider", "uid"], name: "index_users_on_provider_and_uid", unique: true