Files
danbooru/db/migrate/20100214080605_create_artist_urls.rb
2010-02-15 13:59:58 -05:00

18 lines
425 B
Ruby

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