Module: Atreides::Schema
- Defined in:
- lib/atreides/schema.rb
Defined Under Namespace
Modules: CommandRecorder, Statements, TableDefinition
Constant Summary collapse
- COLUMNS =
{:published_at => :datetime, :state => :string, :time_zone => :string }
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/atreides/schema.rb', line 8 def self.included(base) ActiveRecord::ConnectionAdapters::Table.send :include, TableDefinition ActiveRecord::ConnectionAdapters::TableDefinition.send :include, TableDefinition ActiveRecord::ConnectionAdapters::AbstractAdapter.send :include, Statements if defined?(ActiveRecord::Migration::CommandRecorder) # Rails 3.1+ ActiveRecord::Migration::CommandRecorder.send :include, CommandRecorder end end |