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
/
004_rename_post_to_topic.rb
blob
e381916ecbb16373130c01b3e1221144fff85b13
1
class RenamePostToTopic < ActiveRecord::Migration
2
def self.up
3
rename_column :posts, :post_id, :topic_id
4
end
5
6
def self.down
7
rename_column :posts, :topic_id, :post_id
8
end
9
end