Skip to content
loading...

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

FULL DISCUSSION
 

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