KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
data_migrations
★ 14
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
FREPenTablet
:
AIR 3 Native Extension For Windows 7
open311-simple
:
Open 311 Simple (draft)
visualize
:
Recoset's Dataviz Framework
PP-MM-A03
:
Parallel Processing - Matrix Multiplication (Cannon, DNS, LUdecomp)
PubHub
:
A PubSub hub implementation in node.js
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
data_migrations
?
Download (.md)
# data\_migrations [](http://travis-ci.org/svenfuchs/data_migrations) class CreateBuilds < ActiveRecord::Migration def self.up create_table :tests do |t| # ... end migrate_table :builds, :to => :tests |t| t.where 'parent_id IS NULL' t.move :number t.copy :parent_id, :to => :build_id t.copy :commit, :result, :to => [:hash, :status] t.copy :all # t.copy :all, :except => :foo # t.exec 'UPDATE foo ...' # t.set :source, 'github' end end def self.down # revert the whole thing. not sure we can derive this automatically? migrate_table :builds, :to => :tests |t| t.move :number t.copy :build_id, :to => :parent_id t.copy :hash, :status, :to => [:commit, :result] end drop_table :tests end end