Dropping old "admins" table in favor of new User model.
This commit is contained in:
parent
f73353d420
commit
239a4758c0
2 changed files with 11 additions and 8 deletions
5
db/migrate/20150503130412_delete_admins_table.rb
Normal file
5
db/migrate/20150503130412_delete_admins_table.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class DeleteAdminsTable < ActiveRecord::Migration
|
||||
def change
|
||||
drop_table :admins
|
||||
end
|
||||
end
|
||||
14
db/schema.rb
14
db/schema.rb
|
|
@ -11,18 +11,11 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150426141106) do
|
||||
ActiveRecord::Schema.define(version: 20150503130412) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
create_table "admins", force: :cascade do |t|
|
||||
t.string "username", limit: 20
|
||||
t.string "passwordhash", limit: 32
|
||||
end
|
||||
|
||||
add_index "admins", ["username"], name: "admins_username_key", unique: true, using: :btree
|
||||
|
||||
create_table "logs", force: :cascade do |t|
|
||||
t.string "message"
|
||||
t.string "level"
|
||||
|
|
@ -71,5 +64,10 @@ ActiveRecord::Schema.define(version: 20150426141106) do
|
|||
add_index "screenshots", ["id", "approved"], name: "id_approved", using: :btree
|
||||
add_index "screenshots", ["id", "uploaderhash"], name: "id_uploaderhash", using: :btree
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
add_foreign_key "screenshots", "packages", name: "screenshots_package_id_fkey"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue