Sha256: 59341f9bdea669f83a4279d58411f003ce57dc1a6e1e1d884e58b72ee5579adf

Contents?: true

Size: 349 Bytes

Versions: 18

Compression:

Stored size: 349 Bytes

Contents

class ChangeStartOnEndOnToTimestamp < ActiveRecord::Migration
  def self.up
    change_column :event_calendar_events, :start_on, :datetime
    change_column :event_calendar_events, :end_on, :datetime
  end

  def self.down
    change_column :event_calendar_events, :start_on, :date
    change_column :event_calendar_events, :end_on, :date
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
event_calendar_engine-0.2.15 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.14 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.13 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.11 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.10 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.8 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.7 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.6 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.5 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.4 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.3 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.2 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.1 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.2.0 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.1.11 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.1.10 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.1.9 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb
event_calendar_engine-0.1.8 db/migrate/20101223221015_change_start_on_end_on_to_timestamp.rb