Sha256: a2c4c7368e3c32ae4494646bac3c6e19ef6c1d785eeefb316c587d9361c48fb9

Contents?: true

Size: 685 Bytes

Versions: 2

Compression:

Stored size: 685 Bytes

Contents

class CreateActiveRecordOpenidStoreTables < ActiveRecord::Migration
  def up
    create_table :open_id_associations do |t|
      t.binary :server_url, :null => false
      t.string :handle, :null => false
      t.binary :secret, :null => false
      t.integer :issued, :null => false
      t.integer :lifetime, :null => false
      t.string :assoc_type, :null => false

      t.timestamps
    end

    create_table :open_id_nonces do |t|
      t.string :server_url, :null => false
      t.integer :timestamp, :null => false
      t.string :salt, :null => false

      t.timestamps
    end
  end

  def down
    drop_table :open_id_associations
    drop_table :open_id_nonces
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
active_record_openid_store-0.1.5 examples/active_record_openid_store_rails_example/db/migrate/20130210025915_create_active_record_openid_store_tables.rb
active_record_openid_store-0.1.5 lib/generators/active_record_openid_store/templates/migration.rb