Update seeds to use @example.com
See also https://www.rfc-editor.org/rfc/rfc2606.html
This commit is contained in:
@@ -15,7 +15,7 @@ bin/dev # Start development server (runs on port 3006)
|
|||||||
```
|
```
|
||||||
|
|
||||||
Development URL: http://fizzy.localhost:3006
|
Development URL: http://fizzy.localhost:3006
|
||||||
Login with: david@37signals.com (development fixtures), password will appear in the browser console
|
Login with: david@example.com (development fixtures), password will appear in the browser console
|
||||||
|
|
||||||
### Testing
|
### Testing
|
||||||
```bash
|
```bash
|
||||||
@@ -142,7 +142,7 @@ Key recurring tasks (via `config/recurring.yml`):
|
|||||||
### Chrome MCP (Local Dev)
|
### Chrome MCP (Local Dev)
|
||||||
|
|
||||||
URL: `http://fizzy.localhost:3006`
|
URL: `http://fizzy.localhost:3006`
|
||||||
Login: david@37signals.com (passwordless magic link auth - check rails console for link)
|
Login: david@example.com (passwordless magic link auth - check rails console for link)
|
||||||
|
|
||||||
Use Chrome MCP tools to interact with the running dev app for UI testing and debugging.
|
Use Chrome MCP tools to interact with the running dev app for UI testing and debugging.
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ bin/dev
|
|||||||
|
|
||||||
You'll be able to access the app in development at http://fizzy.localhost:3006.
|
You'll be able to access the app in development at http://fizzy.localhost:3006.
|
||||||
|
|
||||||
To login, enter `david@37signals.com` and grab the verification code from the browser console to sign in.
|
To login, enter `david@example.com` and grab the verification code from the browser console to sign in.
|
||||||
|
|
||||||
### Running tests
|
### Running tests
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
bin/rails runner - <<EOF
|
bin/rails runner - <<EOF
|
||||||
puts "Login with david@37signals.com to: http://fizzy.localhost:3006/"
|
puts "Login with david@example.com to: http://fizzy.localhost:3006/"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ -f tmp/solid-queue.txt ]; then
|
if [ -f tmp/solid-queue.txt ]; then
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ else
|
|||||||
|
|
||||||
def create_tenant(signal_account_name)
|
def create_tenant(signal_account_name)
|
||||||
tenant_id = ActiveRecord::FixtureSet.identify signal_account_name
|
tenant_id = ActiveRecord::FixtureSet.identify signal_account_name
|
||||||
email_address = "david@37signals.com"
|
email_address = "david@example.com"
|
||||||
identity = Identity.find_or_create_by!(email_address: email_address, staff: true)
|
identity = Identity.find_or_create_by!(email_address: email_address, staff: true)
|
||||||
|
|
||||||
unless account = Account.find_by(external_account_id: tenant_id)
|
unless account = Account.find_by(external_account_id: tenant_id)
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
create_tenant "37signals"
|
create_tenant "37signals"
|
||||||
|
|
||||||
david = find_or_create_user "David Heinemeier Hansson", "david@37signals.com"
|
david = find_or_create_user "David Heinemeier Hansson", "david@example.com"
|
||||||
jason = find_or_create_user "Jason Fried", "jason@37signals.com"
|
jason = find_or_create_user "Jason Fried", "jason@example.com"
|
||||||
jz = find_or_create_user "Jason Zimdars", "jz@37signals.com"
|
jz = find_or_create_user "Jason Zimdars", "jz@example.com"
|
||||||
kevin = find_or_create_user "Kevin Mcconnell", "kevin@37signals.com"
|
kevin = find_or_create_user "Kevin Mcconnell", "kevin@example.com"
|
||||||
|
|
||||||
login_as david
|
login_as david
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -1,11 +1,11 @@
|
|||||||
create_tenant "Honcho"
|
create_tenant "Honcho"
|
||||||
|
|
||||||
david = find_or_create_user "David Heinemeier Hansson", "david@37signals.com"
|
david = find_or_create_user "David Heinemeier Hansson", "david@example.com"
|
||||||
jason = find_or_create_user "Jason Fried", "jason@37signals.com"
|
jason = find_or_create_user "Jason Fried", "jason@example.com"
|
||||||
jz = find_or_create_user "Jason Zimdars", "jz@37signals.com"
|
jz = find_or_create_user "Jason Zimdars", "jz@example.com"
|
||||||
kevin = find_or_create_user "Kevin McConnell", "kevin@37signals.com"
|
kevin = find_or_create_user "Kevin McConnell", "kevin@example.com"
|
||||||
jorge = find_or_create_user "Jorge Manrubia", "jorge@37signals.com"
|
jorge = find_or_create_user "Jorge Manrubia", "jorge@example.com"
|
||||||
mike = find_or_create_user "Mike Dalessio", "mike@37signals.com"
|
mike = find_or_create_user "Mike Dalessio", "mike@example.com"
|
||||||
|
|
||||||
login_as david
|
login_as david
|
||||||
|
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
|
|
||||||
require_relative "../config/environment"
|
|
||||||
|
|
||||||
CHANGES = [
|
|
||||||
{ from: "kevin@37signals.com", to: "kevin@basecamp.com" },
|
|
||||||
{ from: "david@37signals.com", to: "david@hey.com" },
|
|
||||||
{ from: "jay@37signals.com", to: "jay@basecamp.com" },
|
|
||||||
{ from: "jeremy@37signals.com", to: "jeremy@basecamp.com" },
|
|
||||||
{ from: "jillian@37signals.com", to: "jillian@basecamp.com" },
|
|
||||||
{ from: "jorge@37signals.com", to: "jorge@basecamp.com" },
|
|
||||||
{ from: "merissa@37signals.com", to: "merissa@basecamp.com" },
|
|
||||||
{ from: "michelle@37signals.com", to: "michelle@basecamp.com" },
|
|
||||||
{ from: "scott@37signals.com", to: "scott@basecamp.com" },
|
|
||||||
{ from: "silvia@37signals.com", to: "silvia@basecamp.com" }
|
|
||||||
]
|
|
||||||
|
|
||||||
ApplicationRecord.with_each_tenant do |tenant|
|
|
||||||
CHANGES.each do |change|
|
|
||||||
user = User.find_by(email_address: change[:from])
|
|
||||||
if user
|
|
||||||
puts "Updating user #{user.id} in tenant #{tenant}: #{change[:from]} -> #{change[:to]}"
|
|
||||||
user.email_address = change[:to]
|
|
||||||
user.save!
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Reference in New Issue
Block a user