Sha256: 3b628baad0c5d0f66ef779a2949aed9b831fe6656aaeed85e834b5ef75e91156
Contents?: true
Size: 598 Bytes
Versions: 6
Compression:
Stored size: 598 Bytes
Contents
class CreateScriptRevisions < ActiveRecord::Migration[5.1] def up create_table :script_revisions do |t| t.belongs_to :job_definition, foreign_key: true, null: false t.text :script, null: false t.belongs_to :user, foreign_key: true, null: true t.datetime :changed_at, null: false t.timestamps null: false end Kuroko2::JobDefinition.all.each do |definition| Kuroko2::ScriptRevision.create(job_definition: definition, script: definition.script, changed_at: definition.updated_at) end end def down drop_table :script_revisions end end
Version data entries
6 entries across 6 versions & 1 rubygems