Skip to content

re: Create table in Rails only if it does not exist already VIEW POST


You can also force a table to be dropped and then created.
A bit more destructive but works well.

create_table :repo_subscriptions, force: true do |t|

Yup it’s useful for tests but a bit destructive for production πŸ˜„

code of conduct - report abuse