cirandas.net

ref: master

plugins/comment_classification/db/migrate/20130822043033_create_comments_labels.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
class CreateCommentsLabels < ActiveRecord::Migration
  def self.up
    create_table :comment_classification_plugin_labels do |t|
      t.string      :name
      t.string      :color
      t.boolean     :enabled, :default => true
      t.references  :owner, :polymorphic => true

      t.timestamps
    end
  end

  def self.down
    drop_table :comment_classification_plugin_labels
  end
end