Sha256: f65d99b9e99b38393cea9398cd359a7be4750e2a86a497a164774494c7502707

Contents?: true

Size: 694 Bytes

Versions: 63

Compression:

Stored size: 694 Bytes

Contents

class <%= class_name %> < ActiveRecord::Migration
  def self.up
    drop_table :open_id_authentication_settings
    drop_table :open_id_authentication_nonces

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

  def self.down
    drop_table :open_id_authentication_nonces

    create_table :open_id_authentication_nonces, :force => true do |t|
      t.integer :created
      t.string :nonce
    end

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

Version data entries

63 entries across 63 versions & 10 rubygems

Version Path
authlogic-oid-1.0.4 test/libs/open_id_authentication/generators/upgrade_open_id_authentication_tables/templates/migration.rb
authlogic-oid-1.0.3 test/libs/open_id_authentication/generators/upgrade_open_id_authentication_tables/templates/migration.rb
authlogic-oid-1.0.2 test/libs/open_id_authentication/generators/upgrade_open_id_authentication_tables/templates/migration.rb