code-mancers/rapidfire

View on GitHub
lib/generators/rapidfire/templates/migrations/add_after_survey_content_to_survey.rb

Summary

Maintainability
A
15 mins
Test Coverage
if Rails::VERSION::MAJOR >= 5
  version = [Rails::VERSION::MAJOR, Rails::VERSION::MINOR].join('.').to_f
  base = ActiveRecord::Migration[version]
else
  base = ActiveRecord::Migration
end

class AddAfterSurveyContentToSurvey < base
  def change
    add_column :rapidfire_surveys, :after_survey_content, :text
  end
end