gitlabhq/db/migrate/20110914221600_create_users_projects.rb

14 lines
354 B
Ruby
Raw Normal View History

2011-10-13 03:00:00 +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