Sha256: 69c0cfbe3eb13957bf969adc11df5a9739d3cb33e6c577c344143a205413daa9
Contents?: true
Size: 1.02 KB
Versions: 15
Compression:
Stored size: 1.02 KB
Contents
require 'rubygems' gem 'sqlite3-ruby' ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => 'pipeline.sqlite') ActiveRecord::Migration.verbose = false ActiveRecord::Schema.define do create_table :delayed_jobs, :force => true do |table| table.integer :priority, :default => 0 table.integer :attempts, :default => 0 table.text :handler table.string :last_error table.datetime :run_at table.datetime :locked_at table.string :locked_by table.datetime :failed_at table.timestamps end create_table :pipeline_instances, :force => true do |t| t.string :type t.string :status t.integer :attempts, :default => 0 t.timestamps end create_table :pipeline_stages, :force => true do |t| t.references :pipeline_instance t.string :type t.string :name t.string :status t.text :message t.integer :attempts, :default => 0 t.timestamps end end at_exit do File.delete("pipeline.sqlite") if File.exists?("pipeline.sqlite") end
Version data entries
15 entries across 15 versions & 2 rubygems