Remove unused columns from Conferences,Venues,Events and Sponsors tables

This commit is contained in:
Nishanth Vijayan 2016-06-24 22:41:18 +05:30
parent f5e52e3855
commit 7a7a58ebf8
6 changed files with 62 additions and 17 deletions

View file

@ -0,0 +1,13 @@
class RemoveUnusedPhotoColumnsFromVenues < ActiveRecord::Migration
def up
remove_column :venues, :photo_updated_at
remove_column :venues, :photo_file_size
remove_column :venues, :photo_content_type
end
def down
add_column :venues, :photo_updated_at, :datetime
add_column :venues, :photo_file_size, :integer
add_column :venues, :photo_content_type, :string
end
end