Permalink
Browse files

Clean up old special forms migration.

  • Loading branch information...
1 parent 1335e98 commit 250711c367994ec2175be0270acb6bd6a3f19470 @zk committed Sep 26, 2011
Showing with 9 additions and 5 deletions.
  1. +8 −4 db/migrate/20101015063351_add_special_forms.rb
  2. +1 −1 db/schema.rb
@@ -18,11 +18,11 @@ def self.add_special_form(lib, ns, name, doc)
f.save
end
-
- def self.up
- lib = Library.find_by_name_and_version('Clojure Core', '1.2.0')
- ns = Namespace.find_by_name_and_version('clojure.core', '1.2.0')
+ def self.add_special_forms_for_version(version)
+
+ lib = Library.find_by_name_and_version('Clojure Core', version)
+ ns = Namespace.find_by_name_and_version('clojure.core', version)
add_special_form(lib,
ns,
@@ -100,6 +100,10 @@ def self.up
'Please see http://clojure.org/special_forms#finally')
end
+ def self.up
+ add_special_forms_for_version "1.2.0"
+ end
+
def self.down
end
end
View
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20101015063351) do
+ActiveRecord::Schema.define(:version => 20110926021317) do
create_table "comments", :force => true do |t|
t.integer "commentable_id", :default => 0

0 comments on commit 250711c

Please sign in to comment.