1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-08 15:05:22 +02:00

Remove unused stock_exchanges table

This commit is contained in:
Zach Gollwitzer 2025-05-16 14:12:59 -04:00
parent 09dae9255a
commit f9da7e3cd5
5 changed files with 12 additions and 1058 deletions

View file

@ -1,3 +0,0 @@
class StockExchange < ApplicationRecord
scope :in_country, ->(country_code) { where(country_code: country_code) }
end

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,11 @@
class RemoveStockExchanges < ActiveRecord::Migration[7.2]
def change
drop_table :stock_exchanges do |t|
t.string :name, null: false
t.string :acronym
t.string :mic, null: false
t.string :country, null: false
t.string :country_code, null: false
end
end
end

23
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[7.2].define(version: 2025_05_14_214242) do
ActiveRecord::Schema[7.2].define(version: 2025_05_16_180846) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@ -550,27 +550,6 @@ ActiveRecord::Schema[7.2].define(version: 2025_05_14_214242) do
t.index ["var"], name: "index_settings_on_var", unique: true
end
create_table "stock_exchanges", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name", null: false
t.string "acronym"
t.string "mic", null: false
t.string "country", null: false
t.string "country_code", null: false
t.string "city"
t.string "website"
t.string "timezone_name"
t.string "timezone_abbr"
t.string "timezone_abbr_dst"
t.string "currency_code"
t.string "currency_symbol"
t.string "currency_name"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["country"], name: "index_stock_exchanges_on_country"
t.index ["country_code"], name: "index_stock_exchanges_on_country_code"
t.index ["currency_code"], name: "index_stock_exchanges_on_currency_code"
end
create_table "subscriptions", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "family_id", null: false
t.string "status", null: false

View file

@ -1,13 +0,0 @@
nasdaq:
name: NASDAQ
mic: XNAS
acronym: NASDAQ
country: USA
country_code: US
nyse:
name: New York Stock Exchange
mic: XNYS
acronym: NYSE
country: USA
country_code: US