Drop unused tables and columns
This commit is contained in:
parent
3eeed04b15
commit
28ec385b72
1
.gitignore
vendored
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
|
8
db/migrate/20170611171826_remove_comments_and_likes.rb
Normal file
8
db/migrate/20170611171826_remove_comments_and_likes.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user