Sha256: 3c9a61060b1f700ec583590194bc207e91fab60aa138e9b458802010ed8ea614

Contents?: true

Size: 497 Bytes

Versions: 10

Compression:

Stored size: 497 Bytes

Contents

module VPNMaker
  module DataStore
    class User
      include DataMapper::Resource

      property :id, Serial
      property :updated_at, DateTime
      property :created_at, DateTime

      property :cn, String
      property :name, String
      property :email, String
      property :active_key, Integer
      property :revoked, Object

      def user; cn; end;

      DataMapper::Model.raise_on_save_failure = true
      DataMapper.finalize
      DataMapper.auto_upgrade!
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vpnmaker-1.0.11 lib/datastore/user.rb
vpnmaker-1.0.10 lib/datastore/user.rb
vpnmaker-1.0.9 lib/datastore/user.rb
vpnmaker-1.0.8 lib/datastore/user.rb
vpnmaker-1.0.7 lib/datastore/user.rb
vpnmaker-1.0.6 lib/datastore/user.rb
vpnmaker-1.0.4 lib/datastore/user.rb
vpnmaker-1.0.3 lib/datastore/user.rb
vpnmaker-1.0.2 lib/datastore/user.rb
vpnmaker-1.0.1 lib/datastore/user.rb