mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge commit 'mainstream/master'
Conflicts: activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
This commit is contained in:
@@ -122,7 +122,7 @@ module ActiveRecord
|
||||
def retrieve_connection
|
||||
connection_handler.retrieve_connection(self)
|
||||
end
|
||||
|
||||
|
||||
# Returns true if +ActiveRecord+ is connected.
|
||||
def connected?
|
||||
connection_handler.connected?(self)
|
||||
|
||||
@@ -31,12 +31,12 @@ module ActiveRecord
|
||||
|
||||
@primary = nil
|
||||
end
|
||||
|
||||
|
||||
# Returns +true+ if the column is either of type string or text.
|
||||
def text?
|
||||
type == :string || type == :text
|
||||
end
|
||||
|
||||
|
||||
# Returns +true+ if the column is either of type integer, float or decimal.
|
||||
def number?
|
||||
type == :integer || type == :float || type == :decimal
|
||||
@@ -297,7 +297,7 @@ module ActiveRecord
|
||||
# puts t.class # => "ActiveRecord::ConnectionAdapters::TableDefinition"
|
||||
# end
|
||||
# end
|
||||
#
|
||||
#
|
||||
# def self.down
|
||||
# ...
|
||||
# end
|
||||
|
||||
Reference in New Issue
Block a user