test/dummy/db/migrate/20140317201702_create_logs.rb in archiving-0.3.1 vs test/dummy/db/migrate/20140317201702_create_logs.rb in archiving-0.4.0

- old
+ new

@@ -1,5 +1,12 @@ -class CreateLogs < ActiveRecord::Migration +migration_class = + if ActiveRecord::VERSION::MAJOR >= 5 + ActiveRecord::Migration[4.2] + else + ActiveRecord::Migration + end + +class CreateLogs < migration_class def change create_table :log_days do |t| t.references :post t.date :day end