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