mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 04:24:06 +00: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:
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.
|
||||
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user