Remove unused columns from Conferences,Venues,Events and Sponsors tables
This commit is contained in:
parent
f5e52e3855
commit
7a7a58ebf8
6 changed files with 62 additions and 17 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue