summaryrefslogtreecommitdiff
path: root/db/migrate/20140422172559_create_simple_captcha_data.rb
blob: 4573b205640d52000798b54859ea3a4ff2759f42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class CreateSimpleCaptchaData < ActiveRecord::Migration
  def self.up
    create_table :simple_captcha_data do |t|
      t.string :key, :limit => 40
      t.string :value, :limit => 6
      t.timestamps
    end
    
    add_index :simple_captcha_data, :key, :name => "idx_key"
  end

  def self.down
    drop_table :simple_captcha_data
  end
end