ref: master
plugins/comment_classification/db/migrate/20130829130226_create_comment_status.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
class CreateCommentStatus < ActiveRecord::Migration def self.up create_table :comment_classification_plugin_statuses do |t| t.string :name t.boolean :enabled, :default => true t.boolean :enable_reason, :default => true t.references :owner, :polymorphic => true t.timestamps end end def self.down drop_table :comment_classification_plugin_statuses end end |