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

Version Path
spontaneous-0.2.0.beta10 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.beta9 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.beta8 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.beta7 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.beta6 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.beta5 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.beta4 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.beta3 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.beta2 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.beta1 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.alpha7 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.alpha6 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.alpha5 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.alpha4 db/migrations/20120423175416_add_pending_modifications.rb
spontaneous-0.2.0.alpha3 db/migrations/20120423175416_add_pending_modifications.rb