2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-30 21:45:13 +00:00
Files
moebooru/db/migrate/040_cleanup.rb

20 lines
602 B
Ruby
Raw Normal View History

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|
end
2014-08-23 20:11:10 +09:00
create_table :news_updates do |_t|
end
end
end