forked from appelier/bigtuna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michal Bugno
committed
Dec 7, 2010
1 parent
77923b6
commit 6ef7a31
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ config/deploy.rb | |
|
||
config/*.yml | ||
|
||
db/* | ||
db/*.sqlite | ||
|
||
builds/* | ||
test/files/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class CreateStepLists < ActiveRecord::Migration | ||
def self.up | ||
create_table :step_lists do |t| | ||
t.string :name | ||
t.text :steps | ||
t.integer :project_id, :null => false | ||
t.timestamps | ||
end | ||
remove_column(:projects, :steps) | ||
end | ||
|
||
def self.down | ||
drop_table :step_lists | ||
add_column(:projects, :steps, :text) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class CreateBuildParts < ActiveRecord::Migration | ||
def self.up | ||
create_table :build_parts do |t| | ||
t.integer :build_id, :null => false | ||
t.string :name | ||
t.text :steps | ||
t.text :output | ||
t.string :status | ||
t.timestamp :started_at | ||
t.timestamp :finished_at | ||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :build_parts | ||
end | ||
end |