Skip to content

Instantly share code, notes, and snippets.

@cj
Created December 7, 2011 17:10
Show Gist options
  • Save cj/1443629 to your computer and use it in GitHub Desktop.
Save cj/1443629 to your computer and use it in GitHub Desktop.
class CreateAsnCccLogs < ActiveRecord::Migration
ActiveRecord::Base.establish_connection(:asn)
def up
create_table :ccc_logs do |t|
t.string :url
t.text :body
t.column :direction, "ENUM('inbound', 'outbound')"
t.boolean :success
t.integer :ccc_assignment_head_id
t.timestamps
end
ActiveRecord::Base.establish_connection(Rails.env)
end
def down
drop_table :ccc_logs
ActiveRecord::Base.establish_connection(Rails.env)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment