/usr/share/backgroundrb/generators/bdrb_migration/templates/migration.rb is in libbackgroundrb-ruby1.8 1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | class <%= class_name %> < ActiveRecord::Migration
def self.up
create_table :<%= bdrb_table_name %> do |t|
t.column :args, :binary
t.column :worker_name, :string
t.column :worker_method, :string
t.column :job_key, :string
t.column :taken, :int
t.column :finished, :int
t.column :timeout, :int
t.column :priority, :int
t.column :submitted_at, :datetime
t.column :started_at, :datetime
t.column :finished_at, :datetime
t.column :archived_at, :datetime
t.column :tag, :string
t.column :submitter_info, :string
t.column :runner_info, :string
t.column :worker_key, :string
t.column :scheduled_at, :datetime
end
end
def self.down
drop_table :<%= bdrb_table_name %>
end
end
|