Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't create and delete all migration files for every spec
This creates the spec/files directory structure, and uses it to store migration directories. While here, use a few different migration formats to make sure they are compatible.
- Loading branch information
1 parent
22a8527
commit 624b4ff
Showing
7 changed files
with
36 additions
and
92 deletions.
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
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,4 @@ | ||
CreateAltBasic = Sequel.migration do | ||
up{create(11111)} | ||
down{drop(11111)} | ||
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,4 @@ | ||
CreateAltAdvanced = Sequel.migration do | ||
up{create(33333)} | ||
down{drop(33333)} | ||
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,9 @@ | ||
class CreateSessions < Sequel::Migration | ||
def up | ||
create(1111) | ||
end | ||
|
||
def down | ||
drop(1111) | ||
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,9 @@ | ||
CreateNodes = Class.new(Sequel::Migration) do | ||
def up | ||
create(2222) | ||
end | ||
|
||
def down | ||
drop(2222) | ||
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,4 @@ | ||
CreateUsers = Sequel.migration do | ||
up{create(3333)} | ||
down{drop(3333)} | ||
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,4 @@ | ||
CreateAttributes = Sequel.migration do | ||
up{create(5555)} | ||
down{drop(5555)} | ||
end |