Skip to content

Outdated migrations in maglevcms gem #140

Open
@mkyed

Description

@mkyed

It seems a version bump of the maglevcms gem is required for the newly added sqlite3 support to be included...

Example migration from the current version

class AddStyleToSites < ActiveRecord::Migration[6.0]
def change
change_table :maglev_sites do |t|
if t.respond_to? :jsonb
t.jsonb :style, default: []
else
t.json :style, default: []
end
end
end
end

Same file in the installed gem

root@f44fa69e1460:/usr/local/bundle/gems/maglevcms-1.8.0# cat db/migrate/20220612092235_add_style_to_sites.rb
class AddStyleToSites < ActiveRecord::Migration[6.0]
  def change
    change_table :maglev_sites do |t|
      t.jsonb :style, default: []
    end
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions