Skip to content

Commit

Permalink
chore: cleanup after #20
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Aug 23, 2024
1 parent 7a926e7 commit 8add896
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion playground/vanilla/app/models/song.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ class Song < ApplicationRecord
belongs_to :composer
has_many :video_clips

enum genre: { disco: "disco", rock: "rock", classical: "classical" }
enum genre: {disco: "disco", rock: "rock", classical: "classical"}
enum tempo: %w[slow medium fast]
end
1 change: 0 additions & 1 deletion playground/vanilla/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2024_02_27_112250) do

create_table "composers", force: :cascade do |t|
t.text "first_name"
t.text "last_name"
Expand Down
22 changes: 11 additions & 11 deletions playground/vanilla/db/seeds.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
dylan_ryche = Composer.create!(first_name: "Dylan", last_name: "Ryche")
maximo_mussini = Composer.create!(first_name: "Máximo", last_name: "Mussini")
leon_gieco = Composer.create!(first_name: "León", last_name: "Gieco")
calum_graham = Composer.create!(first_name: "Calum", last_name: "Graham")
matteo_brenci = Composer.create!(first_name: "Matteo", last_name: "Brenci")
michael_hedges = Composer.create!(first_name: "Michael", last_name: "Hedges")
antonio_lauro = Composer.create!(first_name: "Antonio", last_name: "Lauro")
celso_machado = Composer.create!(first_name: "Celso", last_name: "Machado")
astor_piazzolla = Composer.create!(first_name: "Astor", last_name: "Piazzolla")
jorge_cardoso = Composer.create!(first_name: "Jorge", last_name: "Cardoso")
domingos_semenzato = Composer.create!(first_name: "Domingos", last_name: "Semenzato")
dylan_ryche = Composer.create!(first_name: "Dylan", last_name: "Ryche", genre: "rock")
maximo_mussini = Composer.create!(first_name: "Máximo", last_name: "Mussini", genre: "rock")
leon_gieco = Composer.create!(first_name: "León", last_name: "Gieco", genre: "rock")
calum_graham = Composer.create!(first_name: "Calum", last_name: "Graham", genre: "rock")
matteo_brenci = Composer.create!(first_name: "Matteo", last_name: "Brenci", genre: "rock")
michael_hedges = Composer.create!(first_name: "Michael", last_name: "Hedges", genre: "rock")
antonio_lauro = Composer.create!(first_name: "Antonio", last_name: "Lauro", genre: "classical")
celso_machado = Composer.create!(first_name: "Celso", last_name: "Machado", genre: "classical")
astor_piazzolla = Composer.create!(first_name: "Astor", last_name: "Piazzolla", genre: "classical")
jorge_cardoso = Composer.create!(first_name: "Jorge", last_name: "Cardoso", genre: "classical")
domingos_semenzato = Composer.create!(first_name: "Domingos", last_name: "Semenzato", genre: "classical")

smoke_signals = Song.create(title: "Smoke Signals", composer: dylan_ryche)
camino_libre = Song.create(title: "Camino Libre", composer: maximo_mussini)
Expand Down

0 comments on commit 8add896

Please sign in to comment.