spec/dummy/db/schema.rb in rails_workflow-0.2.1 vs spec/dummy/db/schema.rb in rails_workflow-0.2.2

- old
+ new

@@ -9,47 +9,47 @@ # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150210070051) do +ActiveRecord::Schema.define(version: 20150217161051) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" - create_table "leads", force: true do |t| + create_table "leads", force: :cascade do |t| t.integer "sales_contact_id" t.text "offer" t.string "name" t.datetime "created_at" t.datetime "updated_at" end - create_table "rails_workflow_contexts", force: true do |t| + create_table "rails_workflow_contexts", force: :cascade do |t| t.integer "parent_id" t.string "parent_type" t.json "body" t.datetime "created_at" t.datetime "updated_at" end add_index "rails_workflow_contexts", ["parent_id", "parent_type"], name: "index_rails_workflow_contexts_on_parent_id_and_parent_type", using: :btree - create_table "rails_workflow_errors", force: true do |t| + create_table "rails_workflow_errors", force: :cascade do |t| t.string "message" t.text "stack_trace" t.integer "parent_id" t.string "parent_type" t.datetime "created_at" t.datetime "updated_at" t.boolean "resolved" end - create_table "rails_workflow_operation_templates", force: true do |t| + create_table "rails_workflow_operation_templates", force: :cascade do |t| t.string "title" t.text "source" - t.text "dependencies" + t.json "dependencies" t.string "operation_class" t.integer "process_template_id" t.datetime "created_at" t.datetime "updated_at" t.boolean "async" @@ -60,58 +60,60 @@ t.string "role" t.string "group" t.text "instruction" t.boolean "is_background", default: true t.string "type" + t.string "partial_name" end - create_table "rails_workflow_operations", force: true do |t| + create_table "rails_workflow_operations", force: :cascade do |t| t.integer "status" t.boolean "async" t.string "title" t.datetime "created_at" t.datetime "updated_at" t.integer "process_id" t.integer "template_id" - t.text "dependencies" + t.json "dependencies" t.integer "child_process_id" t.integer "assignment_id" t.string "assignment_type" t.datetime "assigned_at" t.string "type" t.boolean "is_active" t.datetime "completed_at" t.boolean "is_background" end - create_table "rails_workflow_process_templates", force: true do |t| + create_table "rails_workflow_process_templates", force: :cascade do |t| t.string "title" t.text "source" t.string "manager_class" t.string "process_class" t.datetime "created_at" t.datetime "updated_at" t.string "type" + t.string "partial_name" end - create_table "rails_workflow_processes", force: true do |t| + create_table "rails_workflow_processes", force: :cascade do |t| t.integer "status" t.boolean "async" t.string "title" t.datetime "created_at" t.datetime "updated_at" t.integer "template_id" t.string "type" end - create_table "sales_contacts", force: true do |t| + create_table "sales_contacts", force: :cascade do |t| t.text "message" t.string "email" t.datetime "created_at" t.datetime "updated_at" end - create_table "users", force: true do |t| + create_table "users", force: :cascade do |t| t.string "email", default: "", null: false t.string "encrypted_password", default: "", null: false t.string "reset_password_token" t.datetime "reset_password_sent_at" t.datetime "remember_created_at"