1 namespace :open_id_authentication do
3 desc "Creates authentication tables for use with OpenIdAuthentication"
4 task :create => :environment do
5 raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations?
6 require 'rails_generator'
7 require 'rails_generator/scripts/generate'
8 Rails::Generator::Scripts::Generate.new.run([ "open_id_authentication_tables", "add_open_id_authentication_tables" ])
11 desc "Clear the authentication tables"
12 task :clear => :environment do
13 OpenIdAuthentication::DbStore.gc