Sha256: d142ae34cd7ed946ef0423abcede63090414240ab8c8b6a4854d1db7075dcbe9

Contents?: true

Size: 369 Bytes

Versions: 15

Compression:

Stored size: 369 Bytes

Contents

class CreateEventUsers < ActiveRecord::Migration
  def self.up
    create_table :event_users do |t|
      t.integer :event_id
      t.integer :user_id
      t.timestamps
    end

    add_index :event_users, [:event_id]
    add_index :event_users, [:user_id]
    add_index :event_users, [:event_id, :user_id]
  end

  def self.down
    drop_table :event_users
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
will_filter-5.1.4 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-5.1.3 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-5.1.2 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-5.1.1 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-5.1.0 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-3.1.11 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-3.1.10 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-3.1.9 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-3.1.8 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-3.1.7 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-3.1.6 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-3.1.5 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-3.1.3 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-3.1.2 test/dummy/db/migrate/20090418062225_create_event_users.rb
will_filter-3.1.1 test/dummy/db/migrate/20090418062225_create_event_users.rb