Sha256: 89b29a1546b4920edfe71463b2130a2b9defe4c61e16af972e7a7414d2e3db6b

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

class MoreEventData < ActiveRecord::Migration
  def self.up
    add_column :events, :uuid, :string
    add_column :events, :recurrence_rule, :string
    add_column :events, :all_day, :boolean
    add_column :events, :priority, :string
    add_column :events, :keywords, :string
    add_column :events, :contact, :string
    add_column :events, :postcode, :string
    add_column :events, :lock_version, :integer
    add_column :events, :created_by_id, :integer
    add_column :events, :created_at, :datetime
    add_column :events, :updated_by_id, :integer
    add_column :events, :updated_at, :datetime
  end

  def self.down
    remove_column :events, :uuid
    remove_column :events, :recurrence_rule
    remove_column :events, :all_day
    remove_column :events, :priority
    remove_column :events, :keywords
    remove_column :events, :contact
    remove_column :events, :postcode
    remove_column :events, :lock_version
    remove_column :events, :created_by_id
    remove_column :events, :created_at
    remove_column :events, :updated_by_id
    remove_column :events, :updated_at
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
radiant-event_calendar-extension-1.0.2 db/migrate/20100216080944_more_event_data.rb
radiant-event_calendar-extension-1.0.1 db/migrate/20100216080944_more_event_data.rb
radiant-event_calendar-extension-1.0.0 db/migrate/20100216080944_more_event_data.rb