Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Presidents now contain their country
- Loading branch information
Daniel Vartanov
committed
Jan 8, 2010
1 parent
5d517e2
commit 8ab1143
Showing
6 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
9 changes: 9 additions & 0 deletions
9
presidents/db/migrate/20100108065831_add_country_to_presidents.rb
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 AddCountryToPresidents < ActiveRecord::Migration | ||
def self.up | ||
add_column :presidents, :country, :string | ||
end | ||
|
||
def self.down | ||
remove_column :presidents, :country | ||
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
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
File renamed without changes.