diff options
| author | mo khan <mo@mokhan.ca> | 2025-01-12 19:49:28 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-01-12 19:49:28 -0700 |
| commit | 98aa588670539dd7ee5720973f5c16f03af245da (patch) | |
| tree | 8f37b8055eca8595cd1bf6ee71859d1e5676b5c7 /projects/3/example/db | |
| parent | 1c6426eed6d9d53c7ec535fa7f5c84e9759985df (diff) | |
initial commit
Diffstat (limited to 'projects/3/example/db')
| -rw-r--r-- | projects/3/example/db/seeds.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/projects/3/example/db/seeds.rb b/projects/3/example/db/seeds.rb new file mode 100644 index 0000000..4fbd6ed --- /dev/null +++ b/projects/3/example/db/seeds.rb @@ -0,0 +1,9 @@ +# 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 |
