Sha256: 2176b82412c6e9c5938c6cabb9786ee5a0e9c67779fe575a5dc99f7741884f09

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

migration_class =
  if ActiveRecord::VERSION::MAJOR >= 5
    ActiveRecord::Migration[4.2]
  else
    ActiveRecord::Migration
  end

class CreatePostableOnLogDay < migration_class
  def change
    %w(log_days log_days_archive).each do |table|
      add_column table, :postable_type, :string
      add_column table, :postable_id, :integer
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
archiving-0.4.4 test/dummy/db/migrate/20140414124125_create_postable_on_log_day.rb
archiving-0.4.3 test/dummy/db/migrate/20140414124125_create_postable_on_log_day.rb
archiving-0.4.1 test/dummy/db/migrate/20140414124125_create_postable_on_log_day.rb
archiving-0.4.0 test/dummy/db/migrate/20140414124125_create_postable_on_log_day.rb