Sha256: 59d5fc1c4826664facb5374a15e960af871cfa864fa52d75efff51ec1a76541d

Contents?: true

Size: 534 Bytes

Versions: 14

Compression:

Stored size: 534 Bytes

Contents

class CreateEventCalendarLinks < ActiveRecord::Migration
  def self.up
    create_table :event_calendar_links do |t|
      t.string :name
      t.string :url
      t.text :description
      
      t.timestamps
    end
    
    create_table :event_calendar_events_links, :id => false do |t|
      t.integer :event_id
      t.integer :link_id
    end
    
    add_index :event_calendar_events_links, [:event_id, :link_id]
  end

  def self.down
    drop_table :event_calendar_links
    drop_table :event_calendar_events_links
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
event_calendar_engine-0.2.15 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.14 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.13 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.11 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.10 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.8 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.7 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.6 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.5 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.4 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.3 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.2 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.1 db/migrate/20110206000427_create_event_calendar_links.rb
event_calendar_engine-0.2.0 db/migrate/20110206000427_create_event_calendar_links.rb