Created
September 12, 2012 02:08
-
-
Save Poincare/3703750 to your computer and use it in GitHub Desktop.
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
Camping.goes :People | |
module People::Models | |
class Person < Base | |
end | |
class BasicFields < V 1.0 | |
def self.up | |
create_table Person.table_name do |t| | |
t.string :first_name | |
t.string :last_name | |
t.text :description | |
t.timestamps | |
end | |
end | |
def self.down | |
drop_table Person.table_name | |
end | |
end | |
end | |
def People.create | |
People::Models.create_schema | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment