Drop unused tables and columns

This commit is contained in:
Marcin Kulik 2017-06-19 12:09:08 +02:00
parent 3eeed04b15
commit 28ec385b72
3 changed files with 15 additions and 1 deletions

1
.gitignore vendored
View File

@ -17,7 +17,6 @@
# App artifacts # App artifacts
/_build /_build
/db
/deps /deps
/*.ez /*.ez

View File

@ -0,0 +1,7 @@
class RemoveImageFromAsciicasts < ActiveRecord::Migration
def change
remove_column :asciicasts, :image
remove_column :asciicasts, :image_width
remove_column :asciicasts, :image_height
end
end

View File

@ -0,0 +1,8 @@
class RemoveCommentsAndLikes < ActiveRecord::Migration
def change
remove_column :asciicasts, :comments_count
remove_column :asciicasts, :likes_count
drop_table :comments
drop_table :likes
end
end