This blog is part of our Rails 6 series.
Rails 6.0.0.rc1 was recently released.
Rails 6 allows spaces in tables names in PostgreSQL. Before Rails 6, if we try to
create a table named as
user reviews, Rails tries to create a table named as
in schema named as
Let’s checkout how it works.
Let’s create a table
user reviews in Rails 5.2.
We can see that Rails 5.2 raised an exception and tried to create table named as
Now, let’s create a table
user reviews in Rails 6.
Now, we can see that the SQL generated is correct and Rails successfully created
a table named as
Here is the relevant