nsfw flag and index for site lookup

This commit is contained in:
Kyle Drake 2013-06-21 14:37:35 -07:00
parent 64126f261c
commit 8e64a3c12c
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,9 @@
Sequel.migration do
up {
DB.add_column :sites, :is_nsfw, :boolean, default: false
}
down {
DB.add_column :sites, :is_nsfw
}
end

View file

@ -0,0 +1,9 @@
Sequel.migration do
up {
DB.add_index :sites, [:hits, :created_at]
}
down {
DB.drop_index :sites, [:hits, :created_at]
}
end