Adds reset_column_information to add_events_per_week migration

This commit is contained in:
Chrisbr 2014-07-24 11:53:52 +02:00
parent c05b428d8c
commit ea920b9915

View file

@ -15,6 +15,7 @@ class AddEventsPerWeekToConference < ActiveRecord::Migration
def up
add_column :conferences, :events_per_week, :text
TempConference.reset_column_information
TempVersion.where(item_type: 'Event').each do |event_version|
event = TempEvent.find_by_id(event_version.item_id)