Drop unused tables and columns
parent
3eeed04b15
commit
28ec385b72
@ -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…
Reference in New Issue