Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clean up old special forms migration.

  • Loading branch information...
commit 250711c367994ec2175be0270acb6bd6a3f19470 1 parent 1335e98
@zk zk authored
Showing with 9 additions and 5 deletions.
  1. +8 −4 db/migrate/20101015063351_add_special_forms.rb
  2. +1 −1  db/schema.rb
View
12 db/migrate/20101015063351_add_special_forms.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
2  db/schema.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.