We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class Model < RethinkORM::Base include RethinkORM::Migration attribute name : String attribute age : Int32 migration("0.1", "1") do |data, model| model.age = data["current_age"].as_i model end end
the RethinkORM::Migration module exposes a macro migration(from : String, to : String, & : (JSON::Any, {{type}}) -> {{type}})
RethinkORM::Migration
migration(from : String, to : String, & : (JSON::Any, {{type}}) -> {{type}})
The version is extracted from the current package's version, and necessary migrations are run sequentially up to the current version.
The text was updated successfully, but these errors were encountered:
going to dump a bunch of migrations in here:
Renaming a column, reference: http://redlua.com/post/rename-a-field-in-rethinkdb/
r.db('place_development').table('metadata').replace(function(meta) { return meta.without('zone_id').merge({'parent_id': meta('zone_id')}); });
Sorry, something went wrong.
caspiano
No branches or pull requests
the
RethinkORM::Migration
module exposes a macromigration(from : String, to : String, & : (JSON::Any, {{type}}) -> {{type}})
The version is extracted from the current package's version, and necessary migrations are run sequentially up to the current version.
The text was updated successfully, but these errors were encountered: