mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 06:55:21 +02:00
Remove unused stock_exchanges table
This commit is contained in:
parent
09dae9255a
commit
f9da7e3cd5
5 changed files with 12 additions and 1058 deletions
|
@ -1,3 +0,0 @@
|
||||||
class StockExchange < ApplicationRecord
|
|
||||||
scope :in_country, ->(country_code) { where(country_code: country_code) }
|
|
||||||
end
|
|
1020
config/exchanges.yml
1020
config/exchanges.yml
File diff suppressed because it is too large
Load diff
11
db/migrate/20250516180846_remove_stock_exchanges.rb
Normal file
11
db/migrate/20250516180846_remove_stock_exchanges.rb
Normal 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
23
db/schema.rb
generated
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "pgcrypto"
|
enable_extension "pgcrypto"
|
||||||
enable_extension "plpgsql"
|
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
|
t.index ["var"], name: "index_settings_on_var", unique: true
|
||||||
end
|
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|
|
create_table "subscriptions", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||||
t.uuid "family_id", null: false
|
t.uuid "family_id", null: false
|
||||||
t.string "status", null: false
|
t.string "status", null: false
|
||||||
|
|
13
test/fixtures/stock_exchanges.yml
vendored
13
test/fixtures/stock_exchanges.yml
vendored
|
@ -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
|
|
Loading…
Add table
Add a link
Reference in a new issue