pragmarb / pragma-migration Goto Github PK
View Code? Open in Web Editor NEWMigrations make your API versions immortal.
License: MIT License
Migrations make your API versions immortal.
License: MIT License
Base#apply_to
)Base#add_property
, Base#transform_property
etc.Base.migrate_each
?)Not sure this is doable/we want to do it.
Rack::Request
object from Rails to operations (in pragma-rails
)migration_rolled?
It's not clear right now how we can retrieve the migration repository from the operation, since we don't have access to the middleware's configuration. Perhaps we can inspect the middleware chain from the Rack environment?
We should try to improve the benchmark with different types of migrations, at least 3-4, to see the impact of different transformations on performance.
pragma-rails-starter
with sensible defaults (repository and configuration)We should store migrations under the namespace of the respective resource, e.g. API::V1::Article::Migration::RemoveIdSuffixFromAuthor
.
module YourApp
class Application < Rails::Application
config.middleware.use Pragma::Migration::Middleware,
repository: API::V1::MigrationRepository,
user_version_proc: (lambda do |request|
request.get_header('X-Api-Version') ||
fail(Pragma::Migration::InvalidVersionError, '...')
end)
end
end
This could be handled by the Pragma::Operation hook, which then responds accordingly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.