Drop unused tables and columns

remove-old-upload-endpoint
Marcin Kulik 7 years ago
parent 3eeed04b15
commit 28ec385b72

1
.gitignore vendored

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

@ -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

@ -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
Loading…
Cancel
Save