Sha256: 6e033c74550a6ea9dcf49e23acb83f770fe958e70527f4a317d997b3a9c3363f

Contents?: true

Size: 772 Bytes

Versions: 1

Compression:

Stored size: 772 Bytes

Contents

# Use this migration to upgrade the old 1.1 ActiveRecord store schema
# to the new 2.0 schema.
class UpgradeOpenIDStore < ActiveRecord::Migration
  def self.up
    drop_table "open_id_settings"
    drop_table "open_id_nonces"
    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_nonces"
    create_table "open_id_nonces", :force => true do |t|
      t.column "nonce", :string
      t.column "created", :integer
    end

    create_table "open_id_settings", :force => true do |t|
      t.column "setting", :string
      t.column "value", :binary
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-openid-2.0.1 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb