1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

Update db schema to add user.admin and project_membership table.

git-svn-id: file:///home/svn/framework3/trunk@10030 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Mike Smith 2010-08-17 23:46:41 +00:00
parent d46d4313e7
commit 8785f22454

View File

@ -0,0 +1,19 @@
class AddUserAdmin < ActiveRecord::Migration
# Add user admin flag and project member list.
def self.up
add_column :users, :admin, :boolean, :default => false
create_table :project_members, :id => false do |t|
t.integer :workspace_id, :null => false
t.integer :user_id, :null => false
end
end
def self.down
remove_column :users, :admin
drop_table :project_members
end
end