Import script works fine
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
class AddPicUrlToArtist < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :artists, :pic_url, :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :artists, :pic_url
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class AddLengthToTrack < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :tracks, :length, :integer
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column :tracks, :length
|
||||
end
|
||||
end
|
||||
+3
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20110613135648) do
|
||||
ActiveRecord::Schema.define(:version => 20110614175827) do
|
||||
|
||||
create_table "albums", :force => true do |t|
|
||||
t.string "name"
|
||||
@@ -27,6 +27,7 @@ ActiveRecord::Schema.define(:version => 20110613135648) do
|
||||
t.text "desc"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "pic_url"
|
||||
end
|
||||
|
||||
create_table "tracks", :force => true do |t|
|
||||
@@ -38,6 +39,7 @@ ActiveRecord::Schema.define(:version => 20110613135648) do
|
||||
t.integer "acoustic"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.integer "length"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user