Sha256: ffbcc728e0a62c9de6fcc488689380444e093d7d83085365c733141e05635eeb

Contents?: true

Size: 341 Bytes

Versions: 8

Compression:

Stored size: 341 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
glebtv-simple_captcha-0.6.7 lib/generators/templates/migration.rb
glebtv-simple_captcha-0.6.5 lib/generators/templates/migration.rb
glebtv-simple_captcha-0.6.4 lib/generators/templates/migration.rb
glebtv-simple_captcha-0.6.3 lib/generators/templates/migration.rb
glebtv-simple_captcha-0.6.2 lib/generators/templates/migration.rb
glebtv-simple_captcha-0.6.1 lib/generators/templates/migration.rb
glebtv-simple_captcha-0.6.0 lib/generators/templates/migration.rb
glebtv-simple_captcha-0.5.2 lib/generators/templates/migration.rb