Skip to content

Instantly share code, notes, and snippets.

@jgautsch
Last active December 26, 2015 05:59
Show Gist options
  • Save jgautsch/7104718 to your computer and use it in GitHub Desktop.
Save jgautsch/7104718 to your computer and use it in GitHub Desktop.
A migration that is stalling
# This one worked just fine 20 minutes ago. Nothing has changed since then.
class AddSubjectToIfReport < ActiveRecord::Migration
def change
add_column :if_reports, :subject, :text
end
end
# This one isn't working. Here is the console output after "bundle exec rake db:migrate"
# == AddAckDateToIfReport: migrating ===========================================
# -- add_column(:if_reports, :ack_date, :datetime)
#
class AddAckDateToIfReport < ActiveRecord::Migration
def change
add_column :if_reports, :ack_date, :datetime
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment