fixed tag category coloring, fixed tag category expiration when updating, work on migration
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user