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,23 @@
class CreateArtistVersions < ActiveRecord::Migration
def self.up
create_table :artist_versions do |t|
t.column :artist_id, :integer, :null => false
t.column :name, :string, :null => false
t.column :updater_id, :integer, :null => false
t.column :updater_ip_addr, "inet", :null => false
t.column :is_active, :boolean, :null => false, :default => true
t.column :other_names, :text
t.column :group_name, :string
t.column :url_string, :text
t.timestamps
end
add_index :artist_versions, :artist_id
add_index :artist_versions, :name
add_index :artist_versions, :updater_id
end
def self.down
drop_table :artist_versions
end
end