Category : migrations
Check if table and columns exist to use in Rails migrations
February 20, 2009
ruby #check for column ActiveRecord::Base.connection.tables.include?(name) #check for table Model.columns_hash.has_key("column_name")?
Rants About Rails Database Migrations
August 10, 2008
Migrations as version control for databases When I first learned about Rails migration, I immediately thought that dropping down a...
Read more »
Question Defense © 2016