diff options
author | Marius Peter <marius.peter@tutanota.com> | 2025-08-24 20:29:54 +0200 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2025-08-24 20:29:54 +0200 |
commit | 52b044d6a4278c229992404ad5801769c2d13363 (patch) | |
tree | b30b34da58f26117c035391d09366b190350b1e3 /db/seeds.rb |
First commit.
Vive le Castel Peter !
Diffstat (limited to 'db/seeds.rb')
-rw-r--r-- | db/seeds.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/seeds.rb b/db/seeds.rb new file mode 100644 index 0000000..848db0d --- /dev/null +++ b/db/seeds.rb @@ -0,0 +1,13 @@ +# This file should ensure the existence of records required to run the application in every environment (production, +# development, test). The code here should be idempotent so that it can be executed at any point in every environment. +# The data can then be loaded with the bin/rails db:seed command (or created alongside the database with db:setup). +# +# Example: +# +# ["Action", "Comedy", "Drama", "Horror"].each do |genre_name| +# MovieGenre.find_or_create_by!(name: genre_name) +# end + +Dir[Rails.root.join("db/seeds/*.rb")].sort.each do |seed| + load seed +end |