magic_recipes 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magic_recipes/db.rb +6 -0
- metadata +1 -1
data/lib/magic_recipes/db.rb
CHANGED
@@ -46,6 +46,12 @@ module MagicRecipes
|
|
46
46
|
# => ActiveRecord::Base.connection.tables.each { |t| ActiveRecord::Base.connection.drop_table t }
|
47
47
|
end
|
48
48
|
|
49
|
+
desc "DB-Reset for user without dbcreate permission (deletes all tables than migrates again)"
|
50
|
+
task :save_reset do
|
51
|
+
delete_tables
|
52
|
+
migrate
|
53
|
+
end
|
54
|
+
|
49
55
|
end
|
50
56
|
|
51
57
|
# eof
|