Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
basic user model, closes #87
Browse files Browse the repository at this point in the history
  • Loading branch information
obfuscurity committed May 12, 2013
1 parent c0be096 commit c72ad3b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/descartes/migrations/007_AddUsers.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

Sequel.migration do
up do
create_table(:users) do
primary_key :id
String :email, :size => 80, :null => false, :index => true
Text :preferences
DateTime :created_at, :null => false
DateTime :updated_at, :null => false
end
end

down do
drop_table(:users)
end
end

0 comments on commit c72ad3b

Please sign in to comment.