gitlabhq/db/migrate/20110914221600_create_users_projects.rb

14 lines
354 B
Ruby
Raw Normal View History

2011-10-08 23:36:38 +02:00
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