mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
6eed30a78d
Revert r10296, which was a bad idea because it did not fix the problem if the original version of the migration had already been applied. git-svn-id: file:///home/svn/framework3/trunk@10333 4d416f70-5f16-0410-b530-b9f4589650da
20 lines
397 B
Ruby
20 lines
397 B
Ruby
class AddUserAdmin < ActiveRecord::Migration
|
|
|
|
# Add user admin flag and project member list.
|
|
def self.up
|
|
add_column :users, :admin, :boolean, :default => true
|
|
|
|
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
|
|
|