remove unnecessary fields from devise

This commit is contained in:
benji 2015-09-18 21:11:45 +02:00
parent 17a54723ec
commit 7cc16748bf
2 changed files with 10 additions and 6 deletions

View file

@ -0,0 +1,9 @@
class RemoveDeviseFieldsFromUsers < ActiveRecord::Migration
def change
remove_column :users, :sign_in_count, :integer
remove_column :users, :current_sign_in_at, :datetime
remove_column :users, :last_sign_in_at, :datetime
remove_column :users, :current_sign_in_ip, :string
remove_column :users, :last_sign_in_ip, :string
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150917165758) do
ActiveRecord::Schema.define(version: 20150918190548) do
create_table "delayed_jobs", force: :cascade do |t|
t.integer "priority", default: 0, null: false
@ -66,11 +66,6 @@ ActiveRecord::Schema.define(version: 20150917165758) do
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "remember_created_at"
t.integer "sign_in_count", default: 0, null: false
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.boolean "admin"
t.integer "dagschotel_id"
t.string "avatar_file_name"