Sha256: ec37a7666906dd1e5f0e38f013bb0adf5f5503a2c42bd76482a0197d9e2268da
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 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.references :external 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pipeline-0.0.9 | spec/database_integration_helper.rb |