Sha256: d3fad1356cb3b9ff80f93e75f2561b7b9d16fd750bc618683af20cfdfd0e68fd

Contents?: true

Size: 587 Bytes

Versions: 3

Compression:

Stored size: 587 Bytes

Contents

class AddNewSettings < ActiveRecord::Migration
  def self.up
    add_column :settings, :sidebar_heading, :string
    add_column :settings, :github_username, :string
    add_column :settings, :twitter_username, :string
    add_column :settings, :show_github_badge, :boolean
    add_column :settings, :facebook_url, :string
  end

  def self.down
    # remove_column :settings, :sidebar_heading
    remove_column :settings, :facebook_url
    remove_column :settings, :show_github_badge
    remove_column :settings, :twitter_username
    remove_column :settings, :github_username
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jabe-0.5.9 test/dummy/db/migrate/20110104004400_add_new_settings.rb
jabe-0.5.8 test/dummy/db/migrate/20110104004400_add_new_settings.rb
jabe-0.5.7 test/dummy/db/migrate/20110104004400_add_new_settings.rb