Class: ActiveRecord::Migration::Compatibility::V5_2
- Inherits:
-
V6_0
- Object
- V6_0
- ActiveRecord::Migration::Compatibility::V5_2
show all
- Defined in:
- lib/active_record/migration/compatibility.rb
Direct Known Subclasses
V5_1
Defined Under Namespace
Modules: CommandRecorder, TableDefinition
Instance Method Summary
collapse
Methods inherited from V6_0
#add_reference
Instance Method Details
#add_timestamps(table_name, **options) ⇒ Object
119
120
121
122
|
# File 'lib/active_record/migration/compatibility.rb', line 119
def add_timestamps(table_name, **options)
options[:precision] ||= nil
super
end
|
#change_table(table_name, **options) ⇒ Object
103
104
105
106
107
108
109
|
# File 'lib/active_record/migration/compatibility.rb', line 103
def change_table(table_name, **options)
if block_given?
super { |t| yield compatible_table_definition(t) }
else
super
end
end
|
#create_join_table(table_1, table_2, **options) ⇒ Object
111
112
113
114
115
116
117
|
# File 'lib/active_record/migration/compatibility.rb', line 111
def create_join_table(table_1, table_2, **options)
if block_given?
super { |t| yield compatible_table_definition(t) }
else
super
end
end
|
#create_table(table_name, **options) ⇒ Object
95
96
97
98
99
100
101
|
# File 'lib/active_record/migration/compatibility.rb', line 95
def create_table(table_name, **options)
if block_given?
super { |t| yield compatible_table_definition(t) }
else
super
end
end
|