Sha256: 7031237bb4f5ad8627ad0c830350e69b19763d49f72853b9e10d8470aa9984be

Contents?: true

Size: 678 Bytes

Versions: 41

Compression:

Stored size: 678 Bytes

Contents

class CreateUnidomPasswords < ActiveRecord::Migration

  def change

    create_table :unidom_passwords, id: :uuid do |t|

      t.column :hashed_content, 'char(128)', null: false
      t.column :pepper_content, 'char(128)', null: false

      t.column   :state, 'char(1)', null: false, default: 'C'
      t.datetime :opened_at,        null: false, default: ::Time.utc(1970)
      t.datetime :closed_at,        null: false, default: ::Time.utc(3000)
      t.boolean  :defunct,          null: false, default: false
      t.jsonb    :notation,         null: false, default: {}

      t.timestamps null: false

    end

    add_index :unidom_passwords, :hashed_content

  end

end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
unidom-visitor-0.1 db/migrate/20000220000000_create_unidom_passwords.rb