1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Stock Exchanges with seed (#1351)

* Stock Exchanges with seed

* Run the seed file on migration

* Fix for enum column
This commit is contained in:
Josh Pigford 2024-10-22 14:30:57 -05:00 committed by GitHub
parent d3a6f7e0f0
commit 73e184ad3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 1126 additions and 1 deletions

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: 2024_10_18_201653) do
ActiveRecord::Schema[7.2].define(version: 2024_10_22_192319) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@ -506,6 +506,27 @@ ActiveRecord::Schema[7.2].define(version: 2024_10_18_201653) 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", null: false
t.string "website"
t.string "timezone_name", null: false
t.string "timezone_abbr", null: false
t.string "timezone_abbr_dst"
t.string "currency_code", null: false
t.string "currency_symbol", null: false
t.string "currency_name", null: false
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 "taggings", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "tag_id", null: false
t.string "taggable_type"