fixed tag category coloring, fixed tag category expiration when updating, work on migration

This commit is contained in:
albert
2011-10-10 17:08:29 -04:00
parent 5fb1a17516
commit e011c36ffe
13 changed files with 228 additions and 11 deletions

View File

@@ -7,7 +7,9 @@ class CreateCommentVotes < ActiveRecord::Migration
t.timestamps
end
add_index :comment_votes, :comment_id
add_index :comment_votes, :user_id
add_index :comment_votes, :created_at
end
def self.down

View File

@@ -9,6 +9,7 @@ class CreateArtistVersions < ActiveRecord::Migration
t.column :other_names, :text
t.column :group_name, :string
t.column :url_string, :text
t.column :is_banned, :boolean, :null => false, :default => false
t.timestamps
end

View File

@@ -9,6 +9,7 @@ class CreateArtistUrls < ActiveRecord::Migration
add_index :artist_urls, :artist_id
add_index :artist_urls, :normalized_url
add_index :artist_urls, :url
end
def self.down

View File

@@ -8,6 +8,7 @@ class CreateAdvertisements < ActiveRecord::Migration
t.column :width, :integer, :null => false
t.column :height, :integer, :null => false
t.column :file_name, :string, :null => false
t.column :is_work_safe, :boolean, :null => false, :default => false
t.timestamps
end

View File

@@ -10,6 +10,7 @@ class CreateBans < ActiveRecord::Migration
add_index :bans, :user_id
add_index :bans, :expires_at
add_index :bans, :banner_id
end
def self.down