module Temporality::Schema

Defines a temporality migration helper for use in a create_table block as well as a +temporality(:table)+ helper to be used to alter existing table definitions.

Public Class Methods

include_helpers!() click to toggle source
# File lib/temporality/schema.rb, line 9
def self.include_helpers!
  if Object.const_defined?(:ActiveRecord)
    ActiveRecord::Migration.send(:include, MigrationHelper)
    ActiveRecord::ConnectionAdapters::TableDefinition.send(:include, TableDefinitionHelper)
  end
end