Sha256: fdc417c80b28470879a3a8d9b0fe90104bc5a1d378da6191ba0eb358ce354bf9

Contents?: true

Size: 830 Bytes

Versions: 12

Compression:

Stored size: 830 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", :string, :null => false
      t.column "handle", :string, :null => false
      t.column "secret", :binary, :null => false
      t.column "issued", :integer, :null => false
      t.column "lifetime", :integer, :null => false
      t.column "assoc_type", :string, :null => false
    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

12 entries across 12 versions & 1 rubygems

Version Path
ruby-openid-2.9.2 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.9.1 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.8.0 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.7.0 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.6.0 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.5.0 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.4.0 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.3.0 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.2.3 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.2.2 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.2.1 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb
ruby-openid-2.2.0 examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb