Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20150320001810_create_event_table.rb « migrate « ci « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d889ae874bd71073c12b3b68194d6daa07cb150 (plain)
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