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,15 @@
|
|||
class RemoveUnusedLogoColumnsAndUseDifficultyLevelsFromConferences < ActiveRecord::Migration
|
||||
def up
|
||||
remove_column :conferences, :logo_updated_at
|
||||
remove_column :conferences, :logo_file_size
|
||||
remove_column :conferences, :logo_content_type
|
||||
remove_column :conferences, :use_difficulty_levels
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :conferences, :logo_updated_at, :datetime
|
||||
add_column :conferences, :logo_file_size, :integer
|
||||
add_column :conferences, :logo_content_type, :string
|
||||
add_column :conferences, :use_difficulty_levels, :boolean, default: false
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
class RemoveUnusedLogoColumnsFromSponsors < ActiveRecord::Migration
|
||||
def up
|
||||
remove_column :sponsors, :logo_updated_at
|
||||
remove_column :sponsors, :logo_file_size
|
||||
remove_column :sponsors, :logo_content_type
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :sponsors, :logo_updated_at, :datetime
|
||||
add_column :sponsors, :logo_file_size, :integer
|
||||
add_column :sponsors, :logo_content_type, :string
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
class RemoveLogoAndProgressAndTimeSlotsFromEvents < ActiveRecord::Migration
|
||||
def up
|
||||
remove_column :events, :logo_file_name
|
||||
remove_column :events, :logo_updated_at
|
||||
remove_column :events, :logo_file_size
|
||||
remove_column :events, :logo_content_type
|
||||
remove_column :events, :logo_content_type
|
||||
remove_column :events, :time_slots
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :events, :logo_file_name, :string
|
||||
add_column :events, :logo_updated_at, :datetime
|
||||
add_column :events, :logo_file_size, :integer
|
||||
add_column :events, :logo_content_type, :string
|
||||
add_column :events, :time_slots, :integer
|
||||
add_column :events, :progress, :string, default: 'new', null: false
|
||||
end
|
||||
end
|
||||
|
|
@ -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