Rails 6 adds if_not_exists option to create_table
23-May-2019 1758
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 #Rails #if_not_exists #option #create_table https://www.rubyonrails.ba/link/rails-6-adds-if_not_exists-option-to-create_table