@@ -116,6 +116,14 @@ GRANT ALL PRIVILEGES ON simple_cms_development.*
116
116
TO 'whateverUsernameYouDesire'@'localhost'
117
117
IDENTIFIED BY 'whateverPasswordYouDesire';
118
118
```
119
+
120
+ To grant permissions to everything user
121
+ ```
122
+ GRANT ALL PRIVILEGES ON *.*
123
+ TO 'whateverUsernameYouDesire'@'localhost'
124
+ IDENTIFIED BY 'whateverPasswordYouDesire';
125
+ ```
126
+
119
127
You can now check the privileges of that user.
120
128
```
121
129
SHOW GRANTS FOR whateverUsernameYouDesire@localhost;
@@ -148,7 +156,7 @@ The most common one being `RAILS_ENV=production`
148
156
```
149
157
rake db:schema:dump RAILS_ENV=production'
150
158
```
151
- or for cloud9,
159
+ or for cloud9,
152
160
```
153
161
rake db:schema:dump RAILS_ENV=c9'
154
162
```
@@ -160,7 +168,7 @@ Migrations are Ruby's way of interacting with the database schema using Ruby cod
160
168
rails generate migration MyMigrationName
161
169
```
162
170
### Generate Model
163
- Generating a model will also generate an associated migration.
171
+ Generating a model will also generate an associated migration.
164
172
In this case the associated migration would be named with the timestamp and then _ create_model_names.rb
165
173
```
166
174
rails generate model ModelName
@@ -186,7 +194,7 @@ rake db:migrate VERSION=0
186
194
#### Get the status of the migrations
187
195
To see if migrations are up or down
188
196
```
189
- rake db:migrate:status
197
+ rake db:migrate:status
190
198
```
191
199
192
200
#### VERSIONs
@@ -197,13 +205,13 @@ rake db:migrate VERSION=20160917170621
197
205
```
198
206
199
207
## Rails Console
200
- From the root of your application, you can perform tasks using your application
208
+ From the root of your application, you can perform tasks using your application
201
209
to models and the database through ` rails console `
202
210
```
203
- rails console
211
+ rails console
204
212
```
205
213
To specify enironment:
206
214
```
207
215
rails console c9
208
216
```
209
- For more info, check out [ Rails Console] ( './Tutorial_Docs/Rails_Console.MD' ) .
217
+ For more info, check out [ Rails Console] ( './Tutorial_Docs/Rails_Console.MD' ) .
0 commit comments