-
-
Save ivawzh/c156bfecd03277ef0dffa17ee4c0bad2 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
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
extend activerecord migration macro/DSL.
usage: