391: def should_have_db_columns(*columns)
392: ::ActiveSupport::Deprecation.warn("use: should have_db_column")
393: column_type, precision, limit, default, null, scale, sql_type =
394: get_options!(columns, :type, :precision, :limit,
395: :default, :null, :scale, :sql_type)
396: columns.each do |name|
397: should have_db_column(name).
398: of_type(column_type).
399: with_options(:precision => precision, :limit => limit,
400: :default => default, :null => null,
401: :scale => scale, :sql_type => sql_type)
402: end
403: end