20110914221600_create_users_projects.rb 354 Bytes
Newer Older
gitlabhq's avatar
gitlabhq committed
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