Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Removed deprecated Devise migration helpers #216

Open
wants to merge 1 commit into from

3 participants

Patrick Edgar Müller Alvaro Muhlethaler Sebastian Oelke
Patrick Edgar Müller

After Devise 3.x.x these helpers aren't used anymore
and this is crashing new database rakes.

Deleted unnecessary migration to add "recoverable" to User Model

Patrick Edgar Müller mpatrick Removed deprecated Devise migration helpers
After Devise 3.x.x these helpers aren't used anymore
and this is crashing new database rakes.
f34994e
Sebastian Oelke

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 29, 2014
  1. Patrick Edgar Müller

    Removed deprecated Devise migration helpers

    mpatrick authored
    After Devise 3.x.x these helpers aren't used anymore
    and this is crashing new database rakes.
This page is out of date. Refresh to see the latest.
4 Gemfile
View
@@ -10,8 +10,8 @@ gem 'jquery-rails'
gem 'jbuilder', '~> 1.2'
gem 'ejs'
gem "compass-rails", "~> 1.1.2"
-gem "devise", "~> 3.2.0"
-gem 'transitions', '0.1.9', :require => ["transitions", "active_record/transitions"]
+gem "devise", "~> 3.2.2"
+gem 'transitions', '0.1.9', require: ["transitions", "active_record/transitions"]
gem 'i18n-js'
gem 'rails-i18n'
gem 'configuration'
4 Gemfile.lock
View
@@ -56,7 +56,7 @@ GEM
compass (>= 0.12.2)
configuration (1.3.2)
database_cleaner (1.2.0)
- devise (3.2.0)
+ devise (3.2.2)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
@@ -196,7 +196,7 @@ DEPENDENCIES
compass-rails (~> 1.1.2)
configuration
database_cleaner
- devise (~> 3.2.0)
+ devise (~> 3.2.2)
ejs
factory_girl_rails
i18n-js
47 db/migrate/20110210082458_devise_create_users.rb
View
@@ -1,15 +1,50 @@
class DeviseCreateUsers < ActiveRecord::Migration
def self.up
create_table(:users) do |t|
- t.database_authenticatable :null => false
- t.recoverable
- t.rememberable
- t.trackable
- t.confirmable
- t.encryptable
+ # t.database_authenticatable :null => false
+ # Database authenticatable
+ t.string :email, :null => false, :default => ""
+ t.string :encrypted_password, :null => false, :default => ""
+
+ # t.recoverable
+ # Recoverable
+ t.string :reset_password_token
+ t.datetime :reset_password_sent_at
+
+ # t.rememberable
+ # Rememberable
+ t.datetime :remember_created_at
+
+ # t.trackable
+ # Trackable
+ t.integer :sign_in_count, :default => 0
+ t.datetime :current_sign_in_at
+ t.datetime :last_sign_in_at
+ t.string :current_sign_in_ip
+ t.string :last_sign_in_ip
+
+ # t.confirmable
+ # Confirmable
+ t.string :confirmation_token
+ t.datetime :confirmed_at
+ t.datetime :confirmation_sent_at
+ t.string :unconfirmed_email # Only if using reconfirmable
+
+ # t.encryptable
+ # Encryptable
+ t.string :password_salt
+
# t.lockable :lock_strategy => :failed_attempts, :unlock_strategy => :both
+ # Lockable
+ # t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
+ # t.datetime :locked_at
+
# t.token_authenticatable
+ # t.string :authentication_token
+ # Invitable
+ # t.string :invitation_token
t.timestamps
end
6 db/migrate/20120319114057_add_reset_password_sent_at_to_users.rb
View
@@ -1,6 +0,0 @@
-class AddResetPasswordSentAtToUsers < ActiveRecord::Migration
- def change
- add_column :users, :reset_password_sent_at, :datetime
-
- end
-end
25 db/schema.rb
View
@@ -13,6 +13,9 @@
ActiveRecord::Schema.define(version: 20120504152649) do
+ # These are extensions that must be enabled in order to support this database
+ enable_extension "plpgsql"
+
create_table "changesets", force: true do |t|
t.integer "story_id"
t.integer "project_id"
@@ -61,12 +64,12 @@
end
create_table "users", force: true do |t|
- t.string "email", default: "", null: false
- t.string "encrypted_password", limit: 128, default: "", null: false
+ t.string "email", default: "", null: false
+ t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
- t.string "remember_token"
+ t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
- t.integer "sign_in_count", default: 0
+ t.integer "sign_in_count", default: 0
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
@@ -74,20 +77,20 @@
t.string "confirmation_token"
t.datetime "confirmed_at"
t.datetime "confirmation_sent_at"
+ t.string "unconfirmed_email"
t.string "password_salt"
t.datetime "created_at"
t.datetime "updated_at"
t.string "name"
t.string "initials"
- t.boolean "email_delivery", default: true
- t.boolean "email_acceptance", default: true
- t.boolean "email_rejection", default: true
- t.datetime "reset_password_sent_at"
+ t.boolean "email_delivery", default: true
+ t.boolean "email_acceptance", default: true
+ t.boolean "email_rejection", default: true
t.string "locale"
end
- add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
- add_index "users", ["email"], name: "index_users_on_email", unique: true
- add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
+ add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree
+ add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
end
Something went wrong with that request. Please try again.