Class: ActiveRecord::Migration::Compatibility::V5_2
- Inherits:
-
V6_0
- Object
- V6_1
- 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
Methods inherited from V6_1
#add_column
Instance Method Details
#add_timestamps(table_name, **options) ⇒ Object
209
210
211
212
|
# File 'lib/active_record/migration/compatibility.rb', line 209
def add_timestamps(table_name, **options)
options[:precision] ||= nil
super
end
|
#change_table(table_name, **options) ⇒ Object
193
194
195
196
197
198
199
|
# File 'lib/active_record/migration/compatibility.rb', line 193
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
201
202
203
204
205
206
207
|
# File 'lib/active_record/migration/compatibility.rb', line 201
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
185
186
187
188
189
190
191
|
# File 'lib/active_record/migration/compatibility.rb', line 185
def create_table(table_name, **options)
if block_given?
super { |t| yield compatible_table_definition(t) }
else
super
end
end
|