You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ rails generate platform:core:user bar user more_info:string
59
+
$ rake db:migrate
58
60
```
59
61
60
-
Most of the options for the regular ActiveRecord model generator are available, including namespacing and indexing.
62
+
Most of the options for the regular [ActiveRecord model generator](https://guides.rubyonrails.org/active_record_migrations.html#model-generators) are available, including namespacing and indexing for columns.
61
63
62
-
This is roughly equivalent to calling the standard Rails model generators (`rails g model foo some_info:string`), however by using the above version the resulting models are configured by Platforms::Core as the `Network` or `User` models.
64
+
The above commands are roughly equivalent to calling the regular ActiveRecord model generators (`rails g model foo some_info:string`), but also configure the models in Platforms::Core as the `Network` or `User` models.
63
65
64
-
Typically these would be called "Network" and "User", but here we have called them "Foo" and "Bar".
66
+
Typically these would actually be called "Network" and "User", but here we have called them "Foo" and "Bar".
65
67
66
68
### Adding to an Existing App
67
69
68
-
If you already have `Network` and `User` models (which let's assume are called "Foo" and "Bar" respectively), you can add the relevant configuration by using the generator with the `--existing-model` flag:
70
+
If you already have `Network` and `User` models (which let's assume are called "Foo" and "Bar" respectively), you can configure them for Platforms::Core by using the generator with the `--existing-model` flag:
0 commit comments