aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/getting_started.md
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-05-01 15:31:40 -0500
committerGitHub <noreply@github.com>2019-05-01 15:31:40 -0500
commitcc760e9106404f73ae682f67806e23f36d22add3 (patch)
tree0bf88fe66761508be23477b01fae0d0d917149c3 /guides/source/getting_started.md
parentd09a7c1366f0ea2cee1ac107523417fdb77a3120 (diff)
parent370237ce9055fb2589c1d3f919e16e9001562d8c (diff)
downloadrails-cc760e9106404f73ae682f67806e23f36d22add3.tar.gz
rails-cc760e9106404f73ae682f67806e23f36d22add3.tar.bz2
rails-cc760e9106404f73ae682f67806e23f36d22add3.zip
Merge pull request #36157 from prathamesh-sonpatki/getting-started-updates
Updates to getting started per Rails 6.0 changes [ci skip]
Diffstat (limited to 'guides/source/getting_started.md')
-rw-r--r--guides/source/getting_started.md8
1 files changed, 3 insertions, 5 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index e486c53fe3..1f6744caba 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -126,7 +126,7 @@ run the following:
$ rails --version
```
-If it says something like "Rails 5.2.1", you are ready to continue.
+If it says something like "Rails 6.0.0", you are ready to continue.
### Creating the Blog Application
@@ -205,12 +205,10 @@ $ rails server
TIP: If you are using Windows, you have to pass the scripts under the `bin`
folder directly to the Ruby interpreter e.g. `ruby bin\rails server`.
-TIP: Compiling CoffeeScript and JavaScript asset compression requires you
+TIP: Compiling JavaScript asset compression requires you
have a JavaScript runtime available on your system, in the absence
of a runtime you will see an `execjs` error during asset compilation.
Usually macOS and Windows come with a JavaScript runtime installed.
-Rails adds the `mini_racer` gem to the generated `Gemfile` in a
-commented line for new apps and you can uncomment if you need it.
`therubyrhino` is the recommended runtime for JRuby users and is added by
default to the `Gemfile` in apps generated under JRuby. You can investigate
all the supported runtimes at [ExecJS](https://github.com/rails/execjs#readme).
@@ -1560,7 +1558,7 @@ class CreateComments < ActiveRecord::Migration[6.0]
create_table :comments do |t|
t.string :commenter
t.text :body
- t.references :article, foreign_key: true
+ t.references :article, null: false, foreign_key: true
t.timestamps
end