gitlabhq/db/migrate/20110914221600_create_users_projects.rb
Dmitriy Zaporozhets d378468794 v1.0
2011-10-13 04:00:00 +03:00

14 lines
354 B
Ruby

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