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

20110914221600_create_users_projects.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a89798ae86f6382a661901d1caaa8613e419ae89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class CreateUsersProjects < ActiveRecord::Migration
  def change
    create_table :users_projects do |t|
      t.integer :user_id, :null => false
      t.integer :project_id, :null => false
      t.boolean :read,  :default => false
      t.boolean :write, :default => false
      t.boolean :admin, :default => false

      t.timestamps
    end
  end
end