|
@ -216,11 +216,11 @@ ActiveRecord::Schema.define(version: 20170720000000) do |
|
|
t.string "scopes", default: "", null: false |
|
|
t.string "scopes", default: "", null: false |
|
|
t.datetime "created_at" |
|
|
t.datetime "created_at" |
|
|
t.datetime "updated_at" |
|
|
t.datetime "updated_at" |
|
|
t.boolean "superapp", default: false, null: false |
|
|
|
|
|
t.string "website" |
|
|
|
|
|
t.integer "owner_id" |
|
|
|
|
|
t.string "owner_type" |
|
|
|
|
|
t.index ["owner_id", "owner_type"], name: "index_oauth_applications_on_owner_id_and_owner_type", using: :btree |
|
|
|
|
|
|
|
|
t.boolean "superapp", default: false, null: false |
|
|
|
|
|
t.string "website" |
|
|
|
|
|
t.integer "owner_id" |
|
|
|
|
|
t.string "owner_type" |
|
|
|
|
|
t.index ["owner_id", "owner_type"], name: "index_oauth_applications_on_owner_id_and_owner_type" |
|
|
t.index ["uid"], name: "index_oauth_applications_on_uid", unique: true |
|
|
t.index ["uid"], name: "index_oauth_applications_on_uid", unique: true |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
@ -423,6 +423,7 @@ ActiveRecord::Schema.define(version: 20170720000000) do |
|
|
add_foreign_key "oauth_access_grants", "users", column: "resource_owner_id", on_delete: :cascade |
|
|
add_foreign_key "oauth_access_grants", "users", column: "resource_owner_id", on_delete: :cascade |
|
|
add_foreign_key "oauth_access_tokens", "oauth_applications", column: "application_id", on_delete: :cascade |
|
|
add_foreign_key "oauth_access_tokens", "oauth_applications", column: "application_id", on_delete: :cascade |
|
|
add_foreign_key "oauth_access_tokens", "users", column: "resource_owner_id", on_delete: :cascade |
|
|
add_foreign_key "oauth_access_tokens", "users", column: "resource_owner_id", on_delete: :cascade |
|
|
|
|
|
add_foreign_key "oauth_applications", "users", column: "owner_id", on_delete: :cascade |
|
|
add_foreign_key "preview_cards", "statuses", on_delete: :cascade |
|
|
add_foreign_key "preview_cards", "statuses", on_delete: :cascade |
|
|
add_foreign_key "reports", "accounts", column: "action_taken_by_account_id", on_delete: :nullify |
|
|
add_foreign_key "reports", "accounts", column: "action_taken_by_account_id", on_delete: :nullify |
|
|
add_foreign_key "reports", "accounts", column: "target_account_id", on_delete: :cascade |
|
|
add_foreign_key "reports", "accounts", column: "target_account_id", on_delete: :cascade |
|
|