Sha256: 2c24f1eead458774f11639b9a16e8b8c31db7ebb0c1fc90a1fcb90545b2f182e

Contents?: true

Size: 734 Bytes

Versions: 4

Compression:

Stored size: 734 Bytes

Contents

# Use this migration to create the tables for the ActiveRecord store
class AddOpenIdStoreToDb < ActiveRecord::Migration
  def self.up
    create_table "open_id_associations", :force => true do |t|
      t.column "server_url", :binary
      t.column "handle", :string
      t.column "secret", :binary
      t.column "issued", :integer
      t.column "lifetime", :integer
      t.column "assoc_type", :string
    end

    create_table "open_id_nonces", :force => true do |t|
      t.column :server_url, :string, :null => false
      t.column :timestamp, :integer, :null => false
      t.column :salt, :string, :null => false
    end
  end

  def self.down
    drop_table "open_id_associations"
    drop_table "open_id_nonces"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-openid-2.0.2 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.0.1 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.0.3 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.0.4 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb