We could check this in along with our db/schema.rb. Then load it from our db/seeds.rb
# db/seeds.rb
load('db/seeds/rdf_annotations.rb')
Right now in order to get all the RdfAnnotations we need to run all the migrations rather than being able to take advantage of something like rails db:setup.
And for our tests, There's Rails.application.load_seed which isn't exactly what we want but we could add
# test/test_helper.rb
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all
load('db/seeds/rdf_annotations.rb')
I'm thinking about modifying acts_as_rdfable to help us with this.
Any of the add/remove/delete methods in ActsAsRdfable::MigrationAnnotations::RdfConfig could create/update a
db/seeds/rdf_annotations.rb
file in our application (maybe seed_dump) with the current dump of the database.We could check this in along with our
db/schema.rb
. Then load it from ourdb/seeds.rb
Right now in order to get all the RdfAnnotations we need to run all the migrations rather than being able to take advantage of something like
rails db:setup
.And for our tests, There's
Rails.application.load_seed
which isn't exactly what we want but we could add_Originally posted by @pgwillia in https://github.com/ualbertalib/jupiter/pull/2470#discussion_r701394557_