Rails 6 adds if_not_exists option to create_table

This blog is part of our Rails 6 series. Rails 6.0.0.rc1 was recently released.Rails 6 added if_not_exists to create_table option to create a table if it doesn’t exist.Before Rails 6, we could use ActiveRecord::Base.connection.table_exists?.Default value of if_not_exists option is false.
Rails 6 adds if_not_exists option to create_table #ruby #rubydeveloper #rubyonrails https://www.rubyonrails.ba/single/rails-6-adds-if_not_exists-option-to-create_table

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles