-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove defunct database seeding from web-app.
This has been moved into the Lua code (src/api-umbrella/proxy/startup/seed_database.lua) for a while now. Just cleaning up this old, unused seeding code.
- Loading branch information
Showing
5 changed files
with
1 addition
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,20 +15,7 @@ def bootstrap_class_for(flash_type) | |
end | ||
|
||
def web_admin_ajax_api_user | ||
user = ApiUser.where(:email => "[email protected]").order_by(:created_at.asc).first | ||
unless(user) | ||
user = ApiUser.create!({ | ||
:email => "[email protected]", | ||
:first_name => "API Umbrella Admin", | ||
:last_name => "Key", | ||
:use_description => "An API key for the API Umbrella admin to use for internal ajax requests.", | ||
:terms_and_conditions => "1", | ||
:registration_source => "seed", | ||
:settings_attributes => { :rate_limit_mode => "unlimited" }, | ||
}, :without_protection => true) | ||
end | ||
|
||
user | ||
ApiUser.where(:email => "[email protected]").order_by(:created_at.asc).first | ||
end | ||
|
||
def omniauth_external_providers | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
# Seed with seed-fu | ||
SeedFu.seed | ||