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