diff --git a/app/models/admin.rb b/app/models/admin.rb deleted file mode 100644 index f640170..0000000 --- a/app/models/admin.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Admin < ActiveRecord::Base - devise :database_authenticatable, :trackable -end diff --git a/config/routes.rb b/config/routes.rb index f281a01..21aeb4e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,5 @@ Rails.application.routes.draw do - devise_for :admins root "orders#overview" resources :users do diff --git a/db/migrate/20141208200510_devise_create_admins.rb b/db/migrate/20141208200510_devise_create_admins.rb deleted file mode 100644 index 17c5cec..0000000 --- a/db/migrate/20141208200510_devise_create_admins.rb +++ /dev/null @@ -1,20 +0,0 @@ -class DeviseCreateAdmins < ActiveRecord::Migration - def change - create_table(:admins) do |t| - ## Database authenticatable - t.string :email, null: false, default: "" - t.string :encrypted_password, null: false, default: "" - - ## Trackable - 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.timestamps - end - - add_index :admins, :email, unique: true - end -end diff --git a/db/schema.rb b/db/schema.rb index e993a3e..5791654 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,21 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20141208200510) do - - create_table "admins", force: true do |t| - t.string "email", default: "", null: false - t.string "encrypted_password", default: "", null: false - 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.datetime "created_at" - t.datetime "updated_at" - end - - add_index "admins", ["email"], name: "index_admins_on_email", unique: true +ActiveRecord::Schema.define(version: 20141208160113) do create_table "order_products", force: true do |t| t.integer "order_id" diff --git a/test/fixtures/admins.yml b/test/fixtures/admins.yml deleted file mode 100644 index 937a0c0..0000000 --- a/test/fixtures/admins.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -# This model initially had no columns defined. If you add columns to the -# model remove the '{}' from the fixture names and add the columns immediately -# below each fixture, per the syntax in the comments below -# -one: {} -# column: value -# -two: {} -# column: value diff --git a/test/models/admin_test.rb b/test/models/admin_test.rb deleted file mode 100644 index ab20b8c..0000000 --- a/test/models/admin_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class AdminTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end