Module: Paperclip::Schema

Defined in:
lib/paperclip/schema.rb

Overview

Provides helper methods that can be used in migrations.

Defined Under Namespace

Modules: CommandRecorder, Statements, TableDefinition

Constant Summary collapse

COLUMNS =
{ file_name: :string,
content_type: :string,
file_size: :bigint,
updated_at: :datetime }.freeze

Class Method Summary collapse

Class Method Details

.included(_base) ⇒ Object



11
12
13
14
15
16
# File 'lib/paperclip/schema.rb', line 11

def self.included(_base)
  ActiveRecord::ConnectionAdapters::Table.include TableDefinition
  ActiveRecord::ConnectionAdapters::TableDefinition.include TableDefinition
  ActiveRecord::ConnectionAdapters::AbstractAdapter.include Statements
  ActiveRecord::Migration::CommandRecorder.include CommandRecorder
end