Added track files
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddAvailableFlagToTracks < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :tracks, :available, :boolean
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
class CreateTrackFiles < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :track_files do |t|
|
||||
t.integer :track_id
|
||||
t.integer :owner_id
|
||||
t.integer :audio_id
|
||||
t.integer :rating
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
+11
-1
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20110926031740) do
|
||||
ActiveRecord::Schema.define(:version => 20111012064322) do
|
||||
|
||||
create_table "album_formats", :force => true do |t|
|
||||
t.integer "album_id"
|
||||
@@ -190,6 +190,15 @@ ActiveRecord::Schema.define(:version => 20110926031740) do
|
||||
add_index "track_artists", ["main"], :name => "index_track_artists_on_main"
|
||||
add_index "track_artists", ["track_id"], :name => "index_track_artists_on_track_id"
|
||||
|
||||
create_table "track_files", :force => true do |t|
|
||||
t.integer "track_id"
|
||||
t.integer "owner_id"
|
||||
t.integer "audio_id"
|
||||
t.integer "rating"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
create_table "tracks", :force => true do |t|
|
||||
t.string "name"
|
||||
t.integer "album_id"
|
||||
@@ -202,6 +211,7 @@ ActiveRecord::Schema.define(:version => 20110926031740) do
|
||||
t.integer "length"
|
||||
t.string "country"
|
||||
t.string "mbid"
|
||||
t.boolean "available"
|
||||
end
|
||||
|
||||
add_index "tracks", ["album_id"], :name => "index_tracks_on_album_id"
|
||||
|
||||
Reference in New Issue
Block a user