Sha256: 69120e7121dbff3cf8b7747f4e47b7ec6b56937c201e9bbdcedf262f85694c5a
Contents?: true
Size: 936 Bytes
Versions: 1
Compression:
Stored size: 936 Bytes
Contents
begin ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") rescue ArgumentError ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :dbfile => ":memory:") end ActiveRecord::Base.configurations = true # this schema was directly copied from # http://github.com/viatropos/authlogic-connect-example/blob/master/db/schema.rb ActiveRecord::Schema.define(:version => 1) do create_table :access_tokens do |t| t.integer :user_id t.string :type, :limit => 30 t.string :key # how we identify the user, in case they logout and log back in t.string :token, :limit => 1024 # This has to be huge because of Yahoo's excessively large tokens t.string :secret t.boolean :active # whether or not it's associated with the account t.timestamps end create_table :users, :force => true do |t| t.string :login t.string :email t.timestamps end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
passport-0.1.1 | test/dummy/database.rb |