mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 07:39:39 +02:00
* Use Redis for ActiveJob and ActionCable * Fix alwaysApply setting * Update queue names and weights * Tweak weights * Update job queues * Update docker setup guide * Remove deprecated upgrade columns from users table * Refactor Redis configuration for Sidekiq and caching in production environment * Add Sidekiq Sentry monitoring * queue naming fix * Clean up schema
24 lines
774 B
Ruby
24 lines
774 B
Ruby
class CreateStockExchanges < ActiveRecord::Migration[7.2]
|
|
def change
|
|
create_table :stock_exchanges, id: :uuid 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.timestamps
|
|
end
|
|
|
|
add_index :stock_exchanges, :country
|
|
add_index :stock_exchanges, :country_code
|
|
add_index :stock_exchanges, :currency_code
|
|
end
|
|
end
|