repo.or.cz
/
beast-modified.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
beast rev 2066
[beast-modified.git]
/
db
/
migrate
/
031_topic_locked.rb
blob
4d528395716026621a654bcbcbb2bb338b8f5cb1
1
class TopicLocked < ActiveRecord::Migration
2
def self.up
3
add_column "topics", "locked", :boolean, :default => false
4
Topic.update_all [ "locked= ? ", false ]
5
end
6
7
def self.down
8
remove_column "topics", "locked"
9
end
10
end