papercloud / devise_sessionable Goto Github PK
View Code? Open in Web Editor NEWToken authentication using session objects
License: MIT License
Token authentication using session objects
License: MIT License
At the moment the migration assumes that authable
is uuid
, but the table name in not uuid
.
This should be an option that can be passed to the install
command
== 20171106025207 CreateSessions: migrating ===================================
-- create_table(:sessions, {:id=>:uuid})
-> 0.0443s
-- add_index(:sessions, :authentication_token)
-> 0.0066s
== 20171106025207 CreateSessions: migrated (0.0511s) ==========================
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:
Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
class DeviseSessionableCreateSessions < ActiveRecord::Migration[4.2]
/Users/tristanhart/workspace/ohai-rails/db/migrate/20171108062236_devise_sessionable_create_sessions.rb:1:in `<top (required)>'
/Users/tristanhart/workspace/ohai-rails/bin/rails:9:in `require'
/Users/tristanhart/workspace/ohai-rails/bin/rails:9:in `<top (required)>'
/Users/tristanhart/workspace/ohai-rails/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Caused by:
StandardError: Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
class DeviseSessionableCreateSessions < ActiveRecord::Migration[4.2]
/Users/tristanhart/workspace/ohai-rails/db/migrate/20171108062236_devise_sessionable_create_sessions.rb:1:in `<top (required)>'
/Users/tristanhart/workspace/ohai-rails/bin/rails:9:in `require'
/Users/tristanhart/workspace/ohai-rails/bin/rails:9:in `<top (required)>'
/Users/tristanhart/workspace/ohai-rails/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.