File: migration_sequel.rb

package info (click to toggle)
ruby-simple-captcha2 0.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 168 kB
  • sloc: ruby: 589; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Sequel.migration do
  up do
    create_table :simple_captcha_data do
      primary_key :id
      String :key, size: 40
      String :value, size: 6
      DateTime :created_at
      DateTime :updated_at

      index :key, name: "idx_key"
    end
  end

  down do
    drop_table :simple_captcha_data
  end
end