add HTML5 support

This commit is contained in:
Josh
2017-09-28 16:03:47 -04:00
parent 40ee86a6a4
commit da07eb749f
8 changed files with 76 additions and 13 deletions

View File

@ -0,0 +1,5 @@
class AddUseHtml5ToUsers < ActiveRecord::Migration[5.0]
def change
add_column :users, :use_html5, :boolean, default: false
end
end

View File

@ -10,22 +10,23 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170518190442) do
ActiveRecord::Schema.define(version: 20170928183010) 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.string "token"
t.boolean "use_html5", default: true
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