added artists, comments

This commit is contained in:
albert
2010-02-15 13:59:58 -05:00
parent 3d9d6e229a
commit e9c2d1e636
28 changed files with 1044 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
class CreateArtistUrls < ActiveRecord::Migration
def self.up
create_table :artist_urls do |t|
t.column :artist_id, :integer, :null => false
t.column :url, :text, :null => false
t.column :normalized_url, :text, :null => false
t.timestamps
end
add_index :artist_urls, :artist_id
add_index :artist_urls, :normalized_url
end
def self.down
drop_table :artist_urls
end
end