class CreateValidations < ActiveRecord::Migration
  def self.up
    create_table :validations do |t|
      # Context
      t.integer :answer_id # the answer to validate
      
      # Conditional
      t.string :rule

      # Message
      t.string :message
      
      t.timestamps
    end
  end

  def self.down
    drop_table :validations
  end
end
