Why execute command in a Rails migration doesn't show up in schema.rb? -


I have a project that commands execute to direct some migration commands to the database I'm using this command, but I do not see these commands in Schema Rb. I am surprised that the executed command is excluded from a simple schema dump or not? There is nothing about this in the document.

The only standard database structure is stored in schema.rbb You can call execute Depending on what you are doing with, you may have a better fortune dumping your database structure in SQL format. You can change the schema format in application.rb:

  config.active_record.schema_format =: sql   

You can find other useful information about Schema < / P>

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -