remove users and pros

This commit is contained in:
Tanguy PATTE 2015-09-22 10:28:18 +02:00
parent 3bd9308483
commit 3aad85e925
9 changed files with 12 additions and 62 deletions

View file

@ -1,3 +0,0 @@
class User::CustomFailure < Devise::FailureApp
end

View file

@ -1,3 +0,0 @@
class User::SessionsController < Devise::SessionsController
end

View file

@ -1,6 +0,0 @@
class Pro < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
end

View file

@ -1,6 +0,0 @@
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
end

View file

@ -241,7 +241,7 @@ Devise.setup do |config|
config.warden do |manager|
# manager.intercept_401 = false
# manager.default_strategies(scope: :user).unshift :some_external_strategy
manager.failure_app = User::CustomFailure
# manager.failure_app = User::CustomFailure
end
# ==> Mountable engine configurations

View file

@ -0,0 +1,5 @@
class DeleteTableUsers < ActiveRecord::Migration
def change
drop_table :users
end
end

View file

@ -0,0 +1,5 @@
class DropTablePros < ActiveRecord::Migration
def change
drop_table :pros
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: 20150921101240) do
ActiveRecord::Schema.define(version: 20150922082416) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -121,24 +121,6 @@ ActiveRecord::Schema.define(version: 20150921101240) do
t.boolean "test"
end
create_table "pros", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_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.inet "current_sign_in_ip"
t.inet "last_sign_in_ip"
t.datetime "created_at"
t.datetime "updated_at"
end
add_index "pros", ["email"], name: "index_pros_on_email", unique: true, using: :btree
add_index "pros", ["reset_password_token"], name: "index_pros_on_reset_password_token", unique: true, using: :btree
create_table "types_de_piece_justificative", force: :cascade do |t|
t.string "libelle"
t.string "description"
@ -148,24 +130,6 @@ ActiveRecord::Schema.define(version: 20150921101240) do
t.integer "procedure_id"
end
create_table "users", force: :cascade do |t|
t.string "email", default: "", null: false
t.string "encrypted_password", default: "", null: false
t.string "reset_password_token"
t.datetime "reset_password_sent_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.inet "current_sign_in_ip"
t.inet "last_sign_in_ip"
t.datetime "created_at"
t.datetime "updated_at"
end
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
add_foreign_key "cerfas", "dossiers"
add_foreign_key "commentaires", "dossiers"
end

View file

@ -1,6 +0,0 @@
FactoryGirl.define do
factory :user do
email 'toto@sgmap.fr'
password 'password'
end
end