Chris@909: class <%= class_name %> < ActiveRecord::Migration Chris@909: def self.up Chris@909: drop_table :open_id_authentication_settings Chris@909: drop_table :open_id_authentication_nonces Chris@909: Chris@909: create_table :open_id_authentication_nonces, :force => true do |t| Chris@909: t.integer :timestamp, :null => false Chris@909: t.string :server_url, :null => true Chris@909: t.string :salt, :null => false Chris@909: end Chris@909: end Chris@909: Chris@909: def self.down Chris@909: drop_table :open_id_authentication_nonces Chris@909: Chris@909: create_table :open_id_authentication_nonces, :force => true do |t| Chris@909: t.integer :created Chris@909: t.string :nonce Chris@909: end Chris@909: Chris@909: create_table :open_id_authentication_settings, :force => true do |t| Chris@909: t.string :setting Chris@909: t.binary :value Chris@909: end Chris@909: end Chris@909: end