提交 01979022 编写于 作者: A Andrew White

Merge pull request #22018 from jbranchaud/move-getter-to-attr-reader

Extract native getter to attr_reader.
......@@ -210,7 +210,7 @@ class TableDefinition
# An array of ColumnDefinition objects, representing the column changes
# that have been defined.
attr_accessor :indexes
attr_reader :name, :temporary, :options, :as, :foreign_keys
attr_reader :name, :temporary, :options, :as, :foreign_keys, :native
def initialize(types, name, temporary, options, as = nil)
@columns_hash = {}
......@@ -388,10 +388,6 @@ def create_column_definition(name, type)
ColumnDefinition.new name, type
end
def native
@native
end
def aliased_types(name, fallback)
'timestamp' == name ? :datetime : fallback
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册