Permalink
Browse files

migrations

  • Loading branch information...
1 parent 4353f7e commit 9606293f099503479907ff309c65b5a98362f0d7 @mfine mfine committed Apr 12, 2012
@@ -0,0 +1,5 @@
+Sequel.migration do
+ up do
+ run("create extension hstore")
+ end
+end
@@ -0,0 +1,12 @@
+Sequel.migration do
+ up do
+ create_table(:players) do
+ primary_key :id
+ column :attrs, :hstore
+ end
+ end
+
+ down do
+ drop_table(:players)
+ end
+end
@@ -0,0 +1,11 @@
+Sequel.migration do
+ up do
+ create_table(:players) do
+ primary_key :id
+ column :attrs, :hstore
+ end
+ end
+ down do
+ drop_table(:players)
+ end
+end
View
@@ -1,7 +1,4 @@
module Ranked
- class User < Sequel::Model
- plugin :optimistic_locking
- plugin :timestamps
-
+ class Player < Sequel::Model
end
end
View
@@ -1,7 +1,4 @@
module Ranked
class Result < Sequel::Model
- plugin :optimistic_locking
- plugin :timestamps
-
end
end

0 comments on commit 9606293

Please sign in to comment.