You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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')
The text was updated successfully, but these errors were encountered:
pgwillia
changed the title
Modify [acts_as_rdfable](https://github.com/ualbertalib/acts_as_rdfable/) to help us with seeding and testing our application
Modify to help us with seeding and testing our application
Sep 3, 2021
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 addOriginally posted by @pgwillia in ualbertalib/jupiter#2470 (comment)
The text was updated successfully, but these errors were encountered: