独立迁移:在非Rails项目中使用Rails数据库迁移的瑰宝

时间:2021-02-28 09:44:28
【文件属性】:
文件名称:独立迁移:在非Rails项目中使用Rails数据库迁移的瑰宝
文件大小:25KB
文件格式:ZIP
更新时间:2021-02-28 09:44:28
Ruby 非Rails(和非Ruby)项目中的Rails迁移。 什么是新的 在6.x版本中,由于增加了对Rails 6迁移的支持。 在5.x版本中,我们转向使用Rails 5迁移,而不是维护我们自己的迁移相关代码。 使用Rails 5迁移几乎可以做的任何事情,现在也可以使用! 贡献 依赖于开源社区的贡献! 要提交修订或增强版本,请进行更改,将名称添加到README.markdown的“贡献者”部分,然后向我们发送请求请求! 如果您很活跃并且做得很好,我们将把您添加为协作者! 用法 然后安装Ruby,RubyGems和ruby数据库驱动程序(例如gem install mysql或gem install mysql2 ): $ gem install standalone_migrations 添加到项目基本目录中的Rakefile中: require 'standalone_migration
【文件预览】:
standalone-migrations-master
----VERSION(5B)
----lib()
--------standalone_migrations()
--------tasks()
--------standalone_migrations.rb(620B)
----Gemfile(388B)
----spec()
--------standalone_migrations()
--------standalone_migrations_spec.rb(11KB)
--------spec_helper.rb(106B)
----Rakefile(1KB)
----README.markdown(8KB)
----.travis.yml(547B)
----example()
--------db()
--------Rakefile(254B)
--------.gitignore(45B)
----LICENSE(1KB)
----.rspec(18B)
----.gitignore(50B)
----standalone_migrations.gemspec(3KB)
----vendor()
--------migration_helpers()

网友评论