summaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorMatias Linares <matias.linares@comprandoengrupo.net>2022-06-24 09:37:33 -0300
committerMatias Linares <matias.linares@comprandoengrupo.net>2022-06-24 09:37:33 -0300
commitb0d2b24c6f552b5a54b0f3c3c2b00d596a5ad9c1 (patch)
treebb1a45adc32956e3174024db0f69ad0b7b977c5a /migrations
parent51510f09b4bcaf21f75c3133aa6ecbe97c8139b8 (diff)
downloadbass-player-b0d2b24c6f552b5a54b0f3c3c2b00d596a5ad9c1.tar.gz
Change model Part to Segment
Diffstat (limited to 'migrations')
-rw-r--r--migrations/initial.rb6
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