20150625074341_add_axiom_selections.rb revision f9328b75002f0a5584b4ec930536fc43e5b56fdc
# model: AxiomSelection
# model: ManualAxiomSelection
# has_and_belongs_to_many: Axiom/AxiomSelection
end
# We need to supply a custom name because the generated name is
# too long for PostgreSQL
name: 'index_axioms_on_axiom_selection_id'
# this has been replaced by the Axioms/AxiomSelection association
null: false
end
end
# We need to supply a custom name because the generated name is
# too long for PostgreSQL
name: 'index_axioms_pacs_on_proof_attempt_configuration_id'
end
# migrate axiom selections
# from ProofAttemptConfiguration to ManualAxiomSelection
:sentence_id).
without_protection: true)
end
end
end
# migrate axiom selections
# from ManualAxiomSelection to ProofAttemptConfiguration
:sentence_id).
end
end
end
end
query = <<-SQL
INSERT INTO "#{table}"
(#{values_hash.keys.join(', ')})
VALUES (#{values_hash.values.join(', ')});
SQL
sql.insert(sanitize(query))
end
end