Implement track/stream
* Add Streamer class * Use FactoryGirl for factories * Add sha256 field to tracks * Add mime_type field to tracks
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class AddMimeTypeFieldToTracks < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :tracks, :mime_type, :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :tracks, :mime_type
|
||||
end
|
||||
end
|
9
db/migrate/20110726101228_add_sha256_field_to_tracks.rb
Normal file
9
db/migrate/20110726101228_add_sha256_field_to_tracks.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class AddSha256FieldToTracks < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :tracks, :sha256, :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :tracks, :sha256
|
||||
end
|
||||
end
|
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20110713182005) do
|
||||
ActiveRecord::Schema.define(:version => 20110726101228) do
|
||||
|
||||
create_table "playlists", :force => true do |t|
|
||||
t.string "name"
|
||||
@@ -22,6 +22,8 @@ ActiveRecord::Schema.define(:version => 20110713182005) do
|
||||
t.string "name"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "mime_type"
|
||||
t.string "sha256"
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user