Skip to navigation
How to create the db schema out of a database?
07.12.13
rake db:schema:dump it will create .schema of all your database, after i create the basic migration out of it. for more rake command check out this: * rake cache:clear # Clears all cached pages * rake db:bootstrap # Loads a schema.rb file into the database and then loads the initial database fixtures. * rake db:bootstrap:copy_default_theme # Copy default theme to site theme * rake db:migrate # Migrate the database through scripts in db/migrate. Target specific version with VERSION=x * rake db:schema:dump # Create a db/schema.rb file that can be portably used against any DB supported by AR * rake db:schema:load # Load a schema.rb file into the database * rake db:bootstrap:load # Load initial database fixtures (in db/bootstrap/*.yml) into the current environment
Reply
Anonymous
How to create the db schema out of a database?
rake db:schema:dump it will create .schema of all your database, after i create the basic migration out of it. for more rake command check out this: * rake cache:clear # Clears all cached pages * rake db:bootstrap # Loads a schema.rb file into the database and then loads the initial database fixtures. * rake db:bootstrap:copy_default_theme # Copy default theme to site theme * rake db:migrate # Migrate the database through scripts in db/migrate. Target specific version with VERSION=x * rake db:schema:dump # Create a db/schema.rb file that can be portably used against any DB supported by AR * rake db:schema:load # Load a schema.rb file into the database * rake db:bootstrap:load # Load initial database fixtures (in db/bootstrap/*.yml) into the current environment
07.12.13
Reply
Anonymous
Information Epoch 1734864552
Make your computer work for you, instead of you working for the computer.
Home
Notebook
Contact us