- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1 (0)
- 4.2.7 (0)
- 4.2.9 (0)
- 5.0.0.1 (0)
- 5.1.7 (0)
- 5.2.3 (0)
- 6.0.0 (0)
- 6.1.3.1 (0)
- 6.1.7.7 (0)
- 7.0.0 (0)
- 7.1.3.2 (0)
- 7.1.3.4 (0)
- What's this?
Constants
UniqueConstraintDefinition = Struct.new(:table_name, :column, :options) do def name options[:name] end def deferrable options[:deferrable] end def using_index options[:using_index] end def export_name_on_schema_dump? !ActiveRecord::SchemaDumper.unique_ignore_pattern.match?(name) if name end def defined_for?(name: nil, column: nil, **options) (name.nil? || self.name == name.to_s) && (column.nil? || Array(self.column) == Array(column).map(&:to_s)) && options.all? { |k, v| self.options[k].to_s == v.to_s } end end
ExclusionConstraintDefinition = Struct.new(:table_name, :expression, :options) do def name options[:name] end def using options[:using] end def where options[:where] end def deferrable options[:deferrable] end def export_name_on_schema_dump? !ActiveRecord::SchemaDumper.excl_ignore_pattern.match?(name) if name end end