public
Created

  • Download Gist
gistfile1.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.