readme
This commit is contained in:
13
README.md
13
README.md
@@ -12,6 +12,17 @@ $ psql -U postgres
|
|||||||
postgres=# ALTER USER <username> CREATEDB;
|
postgres=# ALTER USER <username> CREATEDB;
|
||||||
```
|
```
|
||||||
|
|
||||||
6. `rails db:migrate`
|
6. `rails db:migrate`, then create a new org:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
rails tenant:create[name,subdomain] # Create a new tenant (organization)
|
||||||
|
rails tenant:migrate # Migrate all tenant schemas
|
||||||
|
|
||||||
|
rails tenant:migrate_one[subdomain] # Migrate a specific tenant schema
|
||||||
|
rails tenant:rollback[step] # Rollback all tenant schemas by N steps (default: 1)
|
||||||
|
rails tenant:status # Show migration status for all tenants
|
||||||
|
rails tenant:drop[subdomain] # Drop a tenant schema and organization
|
||||||
|
```
|
||||||
|
|
||||||
7. `rails server`
|
7. `rails server`
|
||||||
8. Open localhost:3000
|
8. Open localhost:3000
|
||||||
|
|||||||
Reference in New Issue
Block a user