Sha256: 72e6bc5c85c53f33b85e67195e79648bae161b3ce4c781a451db4d1a01181899

Contents?: true

Size: 1.21 KB

Versions: 33

Compression:

Stored size: 1.21 KB

Contents

class RecurrenceRules < ActiveRecord::Migration
  def self.up
    create_table :event_recurrence_rules do |t|
      t.column :event_id, :integer
      t.column :active, :boolean, :default => false
      t.column :period, :string
      t.column :basis, :string
      t.column :interval, :integer, :default => 1
      t.column :limiting_date, :datetime
      t.column :limiting_count, :integer 
      t.column :created_by, :integer
      t.column :updated_by, :integer
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
      t.column :lock_version, :integer
      t.column :site_id, :integer
    end
    add_index :event_recurrence_rules, :event_id
    remove_column :events, :recurrence_period
    remove_column :events, :recurrence_basis
    remove_column :events, :recurrence_limit
    remove_column :events, :recurrence_count
    remove_column :events, :recurrence_interval
  end

  def self.down
    drop_table :event_recurrence_rules
    add_column :events, :recurrence_period, :string
    add_column :events, :recurrence_basis, :string
    add_column :events, :recurrence_limit, :datetime
    add_column :events, :recurrence_count, :integer
    add_column :events, :recurrence_interval, :integer
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
radiant-event_calendar-extension-1.5.6 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.5.5 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.5.4 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.5.3 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.5.1 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.5.0 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.14 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.12 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.10 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.9 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.8 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.7 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.6 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.5 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.2 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.1 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.4.0 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.3.9 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.3.8 db/migrate/20100221180539_recurrence_rules.rb
radiant-event_calendar-extension-1.3.7 db/migrate/20100221180539_recurrence_rules.rb