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