2010-08-17 23:46:41 +00:00
|
|
|
class AddUserAdmin < ActiveRecord::Migration
|
|
|
|
|
|
|
|
# Add user admin flag and project member list.
|
|
|
|
def self.up
|
2010-09-16 17:29:14 +00:00
|
|
|
add_column :users, :admin, :boolean, :default => true
|
2010-08-17 23:46:41 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|