Sha256: e7d10a42783a6e68659a2d777e12a4431fbae29a75b744a261cc13677f6b966e
Contents?: true
Size: 517 Bytes
Versions: 8
Compression:
Stored size: 517 Bytes
Contents
# == Schema Information # Schema version: 20090529051529 # # Table name: sessions # # id :integer not null, primary key # created_at :datetime not null # updated_at :datetime not null, index_sessions_on_updated_at # session_id :string(64) not null, index_sessions_on_session_id(unique) # data :text # # セッション class Session < ActiveRecord::Base def self.cleanup(seconds) self.delete_all(["(sessions.updated_at < ?)", Time.now - seconds]) return nil end end
Version data entries
8 entries across 8 versions & 2 rubygems