First checkin
This commit is contained in:
parent
f207e2c8b7
commit
90b30db9e8
260 changed files with 37349 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
class ActsAsCommentableUpgradeMigration < ActiveRecord::Migration
|
||||
def self.up
|
||||
rename_column :comments, :comment, :body
|
||||
add_column :comments, :subject, :string
|
||||
add_column :comments, :parent_id, :integer
|
||||
add_column :comments, :lft, :integer
|
||||
add_column :comments, :rgt, :integer
|
||||
|
||||
end
|
||||
|
||||
def self.down
|
||||
rename_column :comments, :body, :comment
|
||||
remove_column :comments, :subject
|
||||
remove_column :comments, :parent_id
|
||||
remove_column :comments, :lft
|
||||
remove_column :comments, :rgt
|
||||
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue