remove crypto balance from backend

This commit is contained in:
João Geonizeli
2021-09-13 20:54:21 -03:00
parent d43939dee4
commit d6b6b997d5
33 changed files with 836 additions and 1422 deletions

11
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_09_06_021610) do
ActiveRecord::Schema.define(version: 2021_09_13_231405) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
@@ -56,14 +56,6 @@ ActiveRecord::Schema.define(version: 2021_09_06_021610) do
t.index ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true
end
create_table "balances", force: :cascade do |t|
t.bigint "user_id", null: false
t.decimal "amount", precision: 20, scale: 10, default: "0.0", null: false
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["user_id"], name: "index_balances_on_user_id"
end
create_table "buy_crypto_orders", force: :cascade do |t|
t.bigint "user_id", null: false
t.string "status", null: false
@@ -149,7 +141,6 @@ ActiveRecord::Schema.define(version: 2021_09_06_021610) do
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
add_foreign_key "balances", "users"
add_foreign_key "buy_crypto_orders", "users"
add_foreign_key "deposit_orders", "users"
add_foreign_key "fiat_balances", "users"