Created
June 13, 2014 14:44
-
-
Save jocelynduc/3a34478ed3e7da3a0dcb to your computer and use it in GitHub Desktop.
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 'active_record/connection_adapters/abstract/schema_definitions' | |
class ActiveRecord::ConnectionAdapters::TableDefinition | |
def publishing(*args) | |
options = args.extract_options! | |
column(:publish_up, :datetime, options) | |
column(:publish_down, :datetime, options) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍