repo.or.cz
/
mwamko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Homepage: first publish of a full set of parts for the server
[mwamko.git]
/
db
/
migrate
/
012_add_is_admin_column.rb
blob
d14baafd8d9892ba249608c42e7cce4c13f59e8f
1
class AddIsAdminColumn < ActiveRecord::Migration
2
def self.up
3
add_column :users, :is_admin, :boolean, {:default => false, :null => false}
4
end
5
6
def self.down
7
remove_column :users, :is_admin
8
end
9
end