diff options
Diffstat (limited to 'migrations')
-rw-r--r-- | migrations/initial.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/migrations/initial.rb b/migrations/initial.rb index b19aba3..a882142 100644 --- a/migrations/initial.rb +++ b/migrations/initial.rb @@ -7,14 +7,12 @@ DB.create_table(:songs) do String :title Integer :duration String :path - - foreign_key :song_id, :songs end -DB.create_table(:parts) do +DB.create_table(:segments) do primary_key :id String :name Integer :from Integer :to - Integer :song_id + foreign_key :song_id, :songs end |