HabitatMap/AirCasting

View on GitHub
db/migrate/20120717081019_add_local_start_and_end_time.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddLocalStartAndEndTime < ActiveRecord::Migration[4.2]
  def up
    add_column :sessions, :local_start_time, :datetime
    add_column :sessions, :local_end_time, :datetime

    add_index :sessions, :local_start_time
    add_index :sessions, :local_end_time
  end

  def down
    remove_column :sessions, :local_start_time
    remove_column :sessions, :local_end_time
  end
end