Skip to content

Using change_table in a temporal table removes the temporal flag and DROPs the history table #334

@MirkoMignini

Description

@MirkoMignini

Using change_table on a table that is already temporal apparently removes the temporal flag. Not sure if this is by design.

I expect that this adds new_column, leaving temporal_table_name as temporal

change_table :temporal_table_name do |t|
  t.string :new_column, null: false
end

Instead, it removes the temporal tables.

Maybe this should remove temporal flag?

change_table :temporal_table_name, temporal: false

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions