Web hosting
28 Août 2016 à 07h16 - 2888 vues

Tips to migrate a website easily and successfully !

The site creation is an important step, but its management will be as important in the future. It will be important to make mandatory steps like getting to the website migration. It goes without saying that the use of effective tool when these approach will be required. One of the most used in this context is ruby ​​on rails and benefits greatly facilitate development work. In the case of migration, it is enough to know what to do with ruby ​​on rails in order to be assured of the outcome.

The website migration

A ruby ​​on rails developer can easily make migration with Active Record functionality of the framework. Clearly, migration essentially allow to change the schema of the database with time. The usual approach is therefore based on the writing of these changes in pure SQL. With migration, the use of a DSL ruby ​​will be possible which will greatly facilitate the description of changes in the tables. therefore it will be seen each of these migration as new versions at the database. The scheme will therefore start as naked and migration will incorporate updates either at the tables, columns or entries. Active Record will know exactly how to update these data and will also update db / schema.rbfichier to have a perfect structure.

How to do?

You should know that migration is stored in the form of files regardless of the migration class. The file name is a UTC time stamp that identifies the migration followed by an underscore followed by the name of the migration issue. The last part of the file name must also be consistent with the name of the migration class. Admittedly, ruby ​​on rails uses this timestamp to best manage the processing of migration and the order of this treatment. If so copy migration, or if it creates one, it will inevitably take its position into account. Of course, with Active record, a generator will come to calculate time stamps.

IT solutions

  1. 9 Déc. 2019The significant difference between PHP development and PHP web development3572 vues
  2. 3 Juil. 2017We use Laravel because it's the best PHP framework7406 vues
  3. 21 Mai 2017Explore PHP for developing dynamic web pages8204 vues
  4. 24 Fév. 2017How does a wordpress plugin to make your rental vacation site profitable?16683 vues
  5. 16 Fév. 2017Be sure to find the right developer5280 vues
  6. 12 Déc. 2016Develop your basket in order to keep your customer online4852 vues
  7. 5 Nov. 2016Stop working with losers, call the pro ruby ​​on rails3281 vues
  8. 27 Sept. 2016A ruby developers should know htlm and css both3149 vues
  9. 12 Août 2016Will Magento fit your project?2893 vues
  10. 23 Déc. 2015Php date, absolutely necessary for your blog update !8015 vues
  11. 18 Déc. 2015The tool to personalized your website AND objects !3121 vues
  12. 22 Nov. 2015Publish often to keep your rank !!3288 vues
  13. 14 Nov. 2015How to create a gif ??3366 vues