2010-04-20 23:05:11 +00:00
|
|
|
class Cleanup < ActiveRecord::Migration
|
|
|
|
def self.up
|
|
|
|
remove_column :forum_posts, :reply_count
|
|
|
|
remove_column :users, :user_blacklist
|
|
|
|
remove_column :users, :post_threshold
|
|
|
|
drop_table :invites
|
|
|
|
drop_table :news_updates
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
add_column :forum_posts, :reply_count, :integer, :null => false, :default => 0
|
|
|
|
add_column :users, :user_blacklist, :text, :null => false, :default => ""
|
|
|
|
add_column :users, :post_threshold, :integer, :null => false, :default => -100
|
2014-08-23 20:11:10 +09:00
|
|
|
create_table :invites do |_t|
|
2010-04-20 23:05:11 +00:00
|
|
|
end
|
2014-08-23 20:11:10 +09:00
|
|
|
create_table :news_updates do |_t|
|
2010-04-20 23:05:11 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|