Import script works fine

This commit is contained in:
magnolia-fan
2011-06-14 22:06:46 +04:00
parent 908f18c7de
commit cb42a55f9d
12 changed files with 118 additions and 13 deletions
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
View File
@@ -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