cirandas.net

ref: master

db/migrate/20170701160657_add_mail_schedules.rb


1
2
3
4
5
6
7
8
9
class AddMailSchedules < ActiveRecord::Migration
  def change
    create_table :mail_schedules do |t|
      t.integer :dest_count
      t.datetime :scheduled_to
    end
    MailSchedule.create(dest_count: 0, scheduled_to: Time.now)
  end
end