Sha256: ec041de513e35ab6b5d64787773eb075176ea79857a7fdf9404849046252c320

Contents?: true

Size: 283 Bytes

Versions: 33

Compression:

Stored size: 283 Bytes

Contents

class AddCustomBaseFlag < ActiveRecord::Migration
  def self.up
    add_column 'nodes', 'custom_base', :boolean, :default=>false
    add_column 'nodes', 'basepath', :text
  end

  def self.down
    remove_column 'nodes', 'custom_base'
    remove_column 'nodes', 'basepath'
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
zena-1.0.0.beta2 db/migrate/003_add_custom_base_flag.rb
zena-1.0.0.beta1 db/migrate/003_add_custom_base_flag.rb
zena-0.16.7 db/migrate/003_add_custom_base_flag.rb
zena-0.16.6 db/migrate/003_add_custom_base_flag.rb
zena-0.16.5 db/migrate/003_add_custom_base_flag.rb
zena-0.16.4 db/migrate/003_add_custom_base_flag.rb
zena-0.16.3 db/migrate/003_add_custom_base_flag.rb
zena-0.16.2 db/migrate/003_add_custom_base_flag.rb
zena-0.16.1 db/migrate/003_add_custom_base_flag.rb
zena-0.16.0 db/migrate/003_add_custom_base_flag.rb
zena-0.15.2 db/migrate/003_add_custom_base_flag.rb
zena-0.15.1 db/migrate/003_add_custom_base_flag.rb
zena-0.15.0 db/migrate/003_add_custom_base_flag.rb