Rachal Cassity
Rachal Cassity

Reputation: 1

Add existing migration into schema.rb

I am working on a development project. My schema.rb does not contain a table. I can see that there is a migration for the table.

How do I add the existing migration into my schema? I have used db:drop, db:create, db:schema:load but that did not create the table.

Upvotes: 0

Views: 27

Answers (1)

ActiveModel_Dirty
ActiveModel_Dirty

Reputation: 528

You'll want to run the migration file:

bin/rails db:migrate

Upvotes: 1

Related Questions