method

fill_timestamps

rails latest stable - Class: ActiveRecord::FixtureSet::TableRow

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

fill_timestamps()
private

No documentation available.

# File activerecord/lib/active_record/fixture_set/table_row.rb, line 76
        def fill_timestamps
          # fill in timestamp columns if they aren't specified and the model is set to record_timestamps
          if model_class.record_timestamps
            model_metadata.timestamp_column_names.each do |c_name|
              @row[c_name] = @now unless @row.key?(c_name)
            end
          end
        end