Created
December 7, 2011 17:10
-
-
Save cj/1443629 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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