Sha256: e54960592f6074fcbd6cd00699f0b720f777542a7cc9eea4320ae9b204bcc8e9

Contents?: true

Size: 402 Bytes

Versions: 18

Compression:

Stored size: 402 Bytes

Contents

# encoding: UTF-8

Sequel.migration do
  up do
    adapter_scheme =  self.adapter_scheme
    alter_table(:content) do
      # content stores
      case adapter_scheme
      when :mysql, :mysql2
        add_column  :box_store, 'mediumtext'
      else
        add_column  :box_store, :text
      end
    end
  end

  down do
    alter_table(:content) do
      drop_column :box_store
    end
  end
end



Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.beta9 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.beta8 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.beta7 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.beta6 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.beta5 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.beta4 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.beta3 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.beta2 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.beta1 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.alpha7 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.alpha6 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.alpha5 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.alpha4 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.alpha3 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.alpha2 db/migrations/20110215133910_boxes.rb
spontaneous-0.2.0.alpha1 db/migrations/20110215133910_boxes.rb
spontaneous-0.1.0.alpha1 db/migrations/20110215133910_boxes.rb