forked from External/greenlight
add preferences and customization (#171)
This commit is contained in:
committed by
Jesus Federico
parent
45c55efd04
commit
24c8952e59
@ -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
|
16
db/schema.rb
16
db/schema.rb
@ -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
|
||||
|
Reference in New Issue
Block a user