This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Svn2Git | |
class Migration | |
attr_reader :dir | |
def initialize(url, options = {}) | |
@url = url | |
@dir = @url.scan(/[^\/]+/).last | |
@options = options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo | |
bar | |
baz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Initialized empty Git repository in /Users/mkovacs/dev/ruby/clients/wtf/vendor/plugins/active_merchant/.git/ | |
Warning: Permanently added the RSA host key for IP address '207.97.227.239' to the list of known hosts. | |
error: object directory /data/git/repositories/6/e8/29/2d/technoweenie/active_merchant.git/objects does not exist; check .git/objects/info/alternates. | |
remote: error: object directory /data/git/repositories/6/e8/29/2d/technoweenie/active_merchant.git/objects does not exist; check .git/objects/info/alternates. | |
remote: Counting objects: 5662, done. | |
remote: Compressing objects: 100% (1323/1323), done. | |
remote: Total 5662 (delta 4351), reused 5605 (delta 4323) | |
Receiving objects: 100% (5662/5662), 5.50 MiB | 52 KiB/s, done. | |
Resolving deltas: 100% (4351/4351), done. | |
error: object directory /data/git/repositories/6/e8/29/2d/technoweenie/active_merchant.git/objects does not exist; check .git/objects/info/alternates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[submodule "vendor/plugins/active_merchant"] | |
path = vendor/plugins/active_merchant | |
url = git@github.com:kovacs/active_merchant.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[submodule "vendor/plugins/acts_as_list"] | |
path = vendor/plugins/acts_as_list | |
url = git://github.com/rails/acts_as_list.git | |
[submodule "vendor/plugins/acts_as_tree"] | |
path = vendor/plugins/acts_as_tree | |
url = git://github.com/rails/acts_as_tree.git | |
[submodule "vendor/plugins/bundle_fu"] | |
path = vendor/plugins/bundle_fu | |
url = git://github.com/timcharper/bundle-fu.git | |
[submodule "vendor/plugins/comatose"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** [rubybits.com :: out] Initialized empty Git repository in /opt/apps/dogstories/releases/20090928175830/vendor/plugins/active_merchant/.git/ | |
** [rubybits.com :: err] error: object directory /data/git/repositories/6/e8/29/2d/technoweenie/active_merchant.git/objects does not exist; check .git/objects/info/alternates. | |
** [rubybits.com :: err] remote: error: object directory /data/git/repositories/6/e8/29/2d/technoweenie/active_merchant.git/objects does not exist; check .git/o bremote: jects/info/alternates. | |
** [rubybits.com :: err] error: object directory /data/git/repositories/6/e8/29/2d/technoweenie/active_merchant.git/objects does not exist; check .git/objects/info/alternates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PGError: ERROR: permission denied: "RI_ConstraintTrigger_25540" is a system trigger | |
: ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "agent_invites" ENABLE TRIGGER ALL;ALTER TABLE "beta_invite_codes" ENABLE TRIGGER ALL;ALTER TABLE "beta_invites" ENABLE TRIGGER ALL;ALTER TABLE "beta_invites_channels" ENABLE TRIGGER ALL;ALTER TABLE "channel_invites" ENABLE TRIGGER ALL;ALTER TABLE "channel_relationships" ENABLE TRIGGER ALL;ALTER TABLE "on_duty_messages" ENABLE TRIGGER ALL;ALTER TABLE "queued_messages" ENABLE TRIGGER ALL;ALTER TABLE "queued_messages_failures" ENABLE TRIGGER ALL;ALTER TABLE "robot_config" ENABLE TRIGGER ALL;ALTER TABLE "robot_log_entries" ENABLE TRIGGER ALL;ALTER TABLE "robot_queue_entries" ENABLE TRIGGER ALL;ALTER TABLE "robot_stats_log" ENABLE TRIGGER ALL;ALTER TABLE "service_notes" ENABLE TRIGGER ALL;ALTER TABLE "twitterer_notes" ENABLE TRIGGER ALL;ALTER TABLE "twitterers" ENABLE TRIGGER ALL;ALTER TABLE "updates" ENABLE TRIGGER ALL;ALTER TABLE "channels" ENABLE TRIGGER ALL;ALTE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
require 'redis' | |
# To use, simply start your Redis server and boot this | |
# example app with: | |
# ruby example_note_keeping_app.rb | |
# | |
# Point your browser to http://localhost:4567 and enjoy! | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
One other cause is your :dependent callbacks. | |
class Blog < AR::Base | |
has_many :posts, :dependent => :destroy | |
end | |
This will iterate through every post and call #destroy on it. Use :delete_all if you want to just issue a single delete query. HOWEVER, this won't hit your destroy callbacks on Post. | |
class Blog < AR::Base | |
has_many :posts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get checkbox value in jquery | |
$("#checkbox_id").is(':checked') |
OlderNewer