Adding Columns to a Database Table in Rails with a Migration:

Adding Columns to a Database Table in Rails with a Migration:

rails.devcamp.com 26 Jul '16, 1pm

In this lesson, we are going to talk about database manipulation and database migrations so you can become familiar with how to add columns to a database in a Rails app. To start, let's add a column to the database by running a migration generator in the console: rails g migration add_stage_to_projects stage:integer Running this command will create a new migration file for us with the code preloaded for adding a new column to the projects table. Now, let's open the 20151030004750_add_stage_to_projects.rb file. This file adds a column to the project table with the command: def change add_column :projects , :stage , :integer end This line me...

Announcing PushType: A next generation content management system for Ruby on Rails

rubyflow.com 26 Jul '16, 11am

Announcing PushType: A next generation content management system for Ruby on Rails by Aaron Russell — Today For almost two years, I’ve been q...

Check how #debugging a problem in #Rails becomes easier when you treat #Rails as just #Ruby

blog.rubyeffect.com 26 Jul '16, 7am

Due to the heavy and long-lasting exposure, I’ve been treating the different parts of rails as first class citizens, but they are all actuall...

Common risks faced when writing a secure web application in ruby on rails, from @edgescan.

itsecurityplanet.com 26 Jul '16, 12am

The talk covered some best practices and pitfalls when writing a secure web application in ruby on rails. With examples on how to deal with t...

Passenger 5.0.30 released: Installation fix, stability and speed improvements

blog.phusion.nl 25 Jul '16, 8pm

application server for Ruby, Node.js, Meteor and Python has been released. We've fixed an issue that could prevent Passenger from installing,...

Reading a Postgres EXPLAIN ANALYZE Query Plan

robots.thoughtbot.com 26 Jul '16, 12am

The most powerful tool at our disposal for understanding and optimizing SQL queries is EXPLAI...

Latest Comments

  1. geethar22 This blog is impressive and informative.It clearly explains about the concept and its techniques.Thanks for sharing this information.Plea... » [Manga-Downloadr] Improving the ...
  2. info Udemy allows instructors to create coupons at any time which is why there are constantly new coupons available. Check back regularly as y... » The Advanced Web Developer Cours...
  3. dhiyachander Here i had read the content you had posted. It is much interesting so please keep update like this. <a href="http://www.thinkittraining.i... » Linux open-source survey release...
  4. thanhluan.uit Everyone can others awesome technical books in: http://luanotes.com/books » 15+ Best Resources for Learning ...
  5. breatheeasy86 It is a great news for IT people specially Indians and want to take a break for a while in preparing for <a href="http://sssjobs.in/">gov... » GoDaddy - Senior Software Engine...