Skip to content

Releases: Invoca/declare_schema

Release v1.3.1

12 Oct 19:44

Choose a tag to compare

Fixed

  • Fix bug in default index name when table name + __ + column suffix exceeds DeclareSchema.max_index_and_constraint_name_length.
    In this case we truncate the table name and append part of its hash.

Release v1.3.1.colin.1

11 Oct 19:57

Choose a tag to compare

Fixed

  • Fix bug in default index anme when table name + __ + column suffix exceeds DeclareSchema.max_index_and_constraint_name_length.
    In this case we truncate the table name and append part of its hash.

Release v1.3.0

11 Jul 06:42

Choose a tag to compare

Added

  • Added DeclareSchema.max_index_and_constraint_name_length with default of 64.

Release v1.3.0.colin.1

03 Jul 03:47

Choose a tag to compare

Added

  • Added DeclareSchema.max_index_and_constraint_name_length with default of 64.

Release v1.2.3

04 Apr 17:05

Choose a tag to compare

Changed

  • Fixed a bug where renaming a foreign key resulted in an incorrect migration

Release v1.2.2

27 Jan 22:19

Choose a tag to compare

Changed

  • Documented belongs_to and has_and_belongs_to_many behavior
  • Documented configurable ignored tables behavior

Fixed

  • Ruby 3.x kwargs issue when calling validates

Removed

  • Ruby 2.5 from test matrix

Release v1.2.1

25 Sep 15:01

Choose a tag to compare

Fixed

  • If Rails is defined, raise if Rails.application is nil.

Release v1.2.0

14 Sep 09:45

Choose a tag to compare

Added

  • Added a rake task definition that can be optionally included into a non-Rails project to generate
    schema migrations.

Fixed

  • Fixed a bug where not aliasing column names was allowing mysql to return them using their uppercase
    variants

Release v1.1.0

22 Jul 14:42

Choose a tag to compare

Changed

  • Fixed a bug where DeclareSchema::Model::HabtmModelShim indexes and integer limits were not being generated properly. Use limit 8 for ids and primary composite key for habtm model.
  • index_definitions_with_primary_key

Release v1.0.2

18 Jul 12:50

Choose a tag to compare

Fixed

  • Fixed a bug where SchemaChange::ColumnRemove was not loaded and causing an exception to raise
    when a column was being removed during migration generation