Class: Authtown::Current
- Inherits:
-
ActiveSupport::CurrentAttributes
- Object
- ActiveSupport::CurrentAttributes
- Authtown::Current
- Defined in:
- lib/authtown.rb
Overview
ActiveRecord schema:
class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.string :email, null: false, index: { unique: true }
t.string :first_name
t.string :password_hash, null: false
t.
end
end
end
class CreateAccountRememberKeys < ActiveRecord::Migration
def change
create_table :account_remember_keys do |t|
t.foreign_key :users, column: :id
t.string :key, null: false
t.datetime :deadline, null: false
end
end
end
Class Method Summary collapse
Class Method Details
.user ⇒ Object
1 |
# File 'lib/authtown.rb', line 1 def self.user = User.new |