Skip to content

Commit

Permalink
Using Version.without_any_callbacks instead
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Nov 10, 2009
1 parent f7cfae2 commit 903175a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20091109203935_add_full_name_to_versions.rb
Expand Up @@ -2,7 +2,7 @@ class AddFullNameToVersions < ActiveRecord::Migration
def self.up
add_column :versions, :full_name, :string

Version.without_callbacks do
Version.without_any_callbacks do
Version.all(:include => :rubygem).each do |version|
version.full_nameify!
end
Expand Down
9 changes: 6 additions & 3 deletions db/schema.rb
Expand Up @@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20091109203935) do
ActiveRecord::Schema.define(:version => 20091021203534) do

create_table "delayed_jobs", :force => true do |t|
t.integer "priority", :default => 0
Expand Down Expand Up @@ -78,6 +78,11 @@
add_index "requirements", ["dependency_id"], :name => "index_requirements_on_dependency_id"
add_index "requirements", ["version_id"], :name => "index_requirements_on_version_id"

create_table "rubyforgers", :force => true do |t|
t.string "email"
t.string "encrypted_password", :limit => 40
end

create_table "rubygems", :force => true do |t|
t.string "name"
t.datetime "created_at"
Expand Down Expand Up @@ -135,12 +140,10 @@
t.integer "position"
t.integer "downloads_count", :default => 0
t.boolean "latest"
t.string "full_name"
end

add_index "versions", ["built_at"], :name => "index_versions_on_built_at"
add_index "versions", ["created_at"], :name => "index_versions_on_created_at"
add_index "versions", ["full_name"], :name => "index_versions_on_full_name"
add_index "versions", ["indexed"], :name => "index_versions_on_indexed"
add_index "versions", ["number"], :name => "index_versions_on_number"
add_index "versions", ["position"], :name => "index_versions_on_position"
Expand Down

0 comments on commit 903175a

Please sign in to comment.