Sha256: 305a19c9b7f48b31e138c3fc11d973f99e2744336666259bb4749ee0cab7582f
Contents?: true
Size: 900 Bytes
Versions: 2
Compression:
Stored size: 900 Bytes
Contents
class TidyUp < ActiveRecord::Migration def self.up remove_column :forums, :topics_count remove_column :forums, :posts_count remove_column :forums, :group_id remove_column :forums, :site_id remove_column :forums, :reader_id remove_column :topics, :site_id remove_column :topics, :group_id remove_column :posts, :site_id remove_column :posts, :forum_id remove_column :posts, :group_id end def self.down add_column :forums, :topics_count, :integer add_column :forums, :posts_count, :integer add_column :forums, :group_id, :integer add_column :forums, :site_id, :integer add_column :forums, :reader_id, :integer add_column :topics, :site_id, :integer add_column :topics, :group_id, :integer add_column :posts, :site_id, :integer add_column :posts, :forum_id, :integer add_column :posts, :group_id, :integer end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-forum-extension-3.0.0.rc4 | db/migrate/20110613130230_tidy_up.rb |
radiant-forum-extension-3.0.0.rc3 | db/migrate/20110613130230_tidy_up.rb |