Rails migrations are used to track and apply database alterations in a reversible manner.
What's the syntax for dropping a database table column through a Rails migration?
ruby-on-rails ruby database activerecord rails-migrationsA user has many uploads. I want to add a column to the uploads table that references the user. What …
ruby-on-rails ruby-on-rails-4 rails-activerecord rails-migrationsOn Rails 4.0.0.rc1, Ruby 2.0.0, after I run a migration, I see the following error when I try to run a …
ruby-on-rails rails-migrations ruby-on-rails-4I need to add timestamps (created_at & updated_at) to an existing table. I tried the following code but …
ruby-on-rails ruby rails-activerecord rails-migrationsI want to make a migration in Rails, referencing another table. Usually, I would do something like: add_column :post, :…
ruby-on-rails ruby-on-rails-3 activerecord rails-migrationsI have a Products table and want to add a column: t.references :imageable, :polymorphic => true I was trying …
ruby-on-rails polymorphic-associations rails-migrationsIs there a rake task that shows the pending migrations in a rails app?
ruby-on-rails rails-migrationsI have a rake task that won't work unless a table exists. I'm working with more than 20 engineers on a …
ruby-on-rails ruby rails-activerecord rails-migrationsI have a User model and a Task model. I have not mentioned any relation between them while creating them. …
ruby-on-rails rails-activerecord ruby-on-rails-4 rails-migrationsIs it possible to completely remove the database and all migration records etc from an existing application so I can …
database ruby-on-rails-3 sqlite activerecord rails-migrations