Sha256: 427472c7d1be8a0ccbfc2fca22f9f66c15ddbf697866a43483d774d4bcf3ac69
Contents?: true
Size: 421 Bytes
Versions: 15
Compression:
Stored size: 421 Bytes
Contents
# encoding: UTF-8 Sequel.migration do up do adapter_scheme = self.adapter_scheme alter_table(:content) do case adapter_scheme when :mysql, :mysql2 add_column :serialized_modifications, 'mediumtext' else add_column :serialized_modifications, :text end end end down do alter_table(:content) do drop_column :serialized_modifications end end end
Version data entries
15 entries across 15 versions & 1 rubygems