Browse files

Merged pusewicz version.

  • Loading branch information...
1 parent a280141 commit 4f7605b79d319dd87c3dad1b3233bf199e8fd24a @pk pk committed Feb 17, 2009
Showing with 1 addition and 7 deletions.
  1. +1 −7 merb_sequel/lib/merb_sequel/merbtasks.rb
View
8 merb_sequel/lib/merb_sequel/merbtasks.rb
@@ -20,12 +20,6 @@
Sequel::Migrator.apply(Sequel::Model.db, "schema/migrations", ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
end
- desc "Drop all tables and perform migrations"
- task :reset => :sequel_env do
- Sequel::Model.db.drop_table *Sequel::Model.db.tables
- Sequel::Migrator.apply(Sequel::Model.db, "schema/migrations", ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
- end
-
desc "Truncate all tables in database"
task :truncate => :sequel_env do
db = Sequel::Model.db
@@ -48,7 +42,7 @@
desc "Clears sessions"
task :clear => :sequel_env do
table_name = ((Merb::Plugins.config[:sequel] || {})[:session_table_name] || "sessions")
- Model.db.connect.execute("DELETE FROM #{table_name}")
+ Sequel::Model.db.connect.execute("DELETE FROM #{table_name}")
end
end

0 comments on commit 4f7605b

Please sign in to comment.