Sha256: 9ecf9bd6494a5f430afe7b5895a882533a8801e1c56955fecd756a2ea6880877
Contents?: true
Size: 937 Bytes
Versions: 4
Compression:
Stored size: 937 Bytes
Contents
class <%= migration_class_name %> < ActiveRecord::Migration<%= Rails::VERSION::MAJOR >= 5 ? "[#{ActiveRecord::Migration.current_version}]" : "" %> def change # columns for CronoTrigger::Schedulable add_column :<%= table_name %>, :cron, :string add_column :<%= table_name %>, :next_execute_at, :datetime add_column :<%= table_name %>, :last_executed_at, :datetime add_column :<%= table_name %>, :timezone, :string add_column :<%= table_name %>, :execute_lock, :integer, limit: 8, default: 0, null: false add_column :<%= table_name %>, :started_at, :datetime, null: false add_column :<%= table_name %>, :finished_at, :datetime add_column :<%= table_name %>, :last_error_name, :string add_column :<%= table_name %>, :last_error_reason, :string add_column :<%= table_name %>, :last_error_time, :string add_column :<%= table_name %>, :retry_count, :integer, default: 0, null: false end end
Version data entries
4 entries across 4 versions & 1 rubygems