Sha256: 2105d5dcb1b11c972e5cacd22b58d2d84b442785c8e13c53fb364259007fd550

Contents?: true

Size: 772 Bytes

Versions: 25

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

25 entries across 25 versions & 4 rubygems

Version Path
ruby-openid-2.9.2 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.9.1 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.8.0 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.7.0 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.6.0 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
pelle-ruby-openid-2.1.8 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.5.0 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.4.0 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.3.0 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.2.3 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.2.2 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.2.1 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.2.0 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
entp-ruby-openid-2.2 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
nov-ruby-openid-2.1.9 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.1.8 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
pelle-ruby-openid-2.1.9 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.1.7 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.0.2 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb
ruby-openid-2.1.6 examples/active_record_openid_store/XXX_upgrade_open_id_store.rb