Skip to content

Instantly share code, notes, and snippets.

@Poincare
Created September 12, 2012 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Poincare/3703750 to your computer and use it in GitHub Desktop.
Save Poincare/3703750 to your computer and use it in GitHub Desktop.
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