Created
November 30, 2011 14:36
-
-
Save criminy/1409272 to your computer and use it in GitHub Desktop.
Revisions
-
criminy revised this gist
Nov 30, 2011 . 3 changed files with 13 additions and 15 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,12 @@ accounts = table("accounts") migration("add_ssl") { up { add_column accounts "ssl_enabled" Fields.boolean { defaults 1 } } down { remove_column accounts "ssl_enabled" } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,11 @@ migration("create_accounts") { up { create_table "accounts" { string "name" string "password" } } down { drop_table "accounts" } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ database { name "asdf" table_prefix = "tbl_" migrations { ref "create_accounts" ref "add_ssl" } } -
criminy created this gist
Nov 30, 2011 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ accounts = table('accounts') migration('add_ssl') { up { add_column accounts 'ssl_enabled' Fields.boolean { defaults 1 } } down { remove_column accounts 'ssl_enabled' } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ migration('create_accounts') { up { create_table 'accounts' { string 'name' string 'password' } } down { drop_table 'accounts' } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ database { name 'asdf' table_prefix = 'tbl_' migrations { ref 'create_accounts' ref 'add_ssl' } }