Module: ActiveRecord::Migration::Compatibility::Legacy
- Includes:
- FourTwoShared
- Defined in:
- lib/active_record/migration/compatibility.rb
Instance Method Summary collapse
Methods included from FourTwoShared
#add_reference, #add_timestamps, #change_table, #create_table, #index_exists?, #remove_index
Instance Method Details
#migrate ⇒ Object
115 116 117 118 119 120 121 122 |
# File 'lib/active_record/migration/compatibility.rb', line 115 def migrate(*) ActiveSupport::Deprecation.warn \ "Directly inheriting from ActiveRecord::Migration is deprecated. " \ "Please specify the Rails release the migration was written for:\n" \ "\n" \ " class #{self.class.name} < ActiveRecord::Migration[4.2]" super end |