1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
class CreateEventTable < ActiveRecord::Migration def change create_table :events do |t| t.integer :project_id t.integer :user_id t.integer :is_admin t.text :description t.timestamps t.index :created_at t.index :is_admin t.index :project_id end end end