Sha256: 894ecda647b0f37f5e6963d05e838312ce345d302517ccd931aa0422d4edb095

Contents?: true

Size: 302 Bytes

Versions: 9

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

class ChangeEndTimeToDuration < ActiveRecord::Migration[4.2]
  def self.up
    add_column :events, :duration, :integer
    remove_column :events, :end_time
  end

  def self.down
    add_column :events, :end_time, :datetime
    remove_column :events, :duration
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
koalagator-3.0.0 db/migrate/013_change_end_time_to_duration.rb
koalagator-2.1.1 db/migrate/013_change_end_time_to_duration.rb
koalagator-2.1.0 db/migrate/013_change_end_time_to_duration.rb
koalagator-2.0.0 db/migrate/013_change_end_time_to_duration.rb
calagator2-2.1.1 db/migrate/013_change_end_time_to_duration.rb
calagator2-2.1.0 db/migrate/013_change_end_time_to_duration.rb
calagator2-2.0.0 db/migrate/013_change_end_time_to_duration.rb
calagator-2.0.0.pre.1 db/migrate/013_change_end_time_to_duration.rb
calagator-2.0.0.pre.0 db/migrate/013_change_end_time_to_duration.rb