mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 21:15:19 +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:
parent
d3a6f7e0f0
commit
73e184ad3d
7 changed files with 1126 additions and 1 deletions
|
@ -3,3 +3,8 @@
|
|||
# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup).
|
||||
|
||||
puts 'Run the following command to create demo data: `rake demo_data:reset`' if Rails.env.development?
|
||||
|
||||
Dir[Rails.root.join('db', 'seeds', '*.rb')].sort.each do |file|
|
||||
puts "Loading seed file: #{File.basename(file)}"
|
||||
require file
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue