Revision 443:350acce374a2 db/migrate

View differences:

db/migrate/20110207142856_add_ext_rep_to_repositories.rb
1
class AddExtRepToRepositories < ActiveRecord::Migration
2
  def self.up
3
    add_column :repositories, :is_external, :bool
4
    add_column :repositories, :external_url, :string
5
  end
6

  
7
  def self.down
8
    remove_column :repositories, :is_external
9
    remove_column :repositories, :external_url
10
  end
11
end
db/migrate/20110303152903_add_active_column_to_attachments.rb
1
class AddActiveColumnToAttachments < ActiveRecord::Migration
2
  def self.up
3
    add_column :attachments, :active, :boolean
4
  end
5

  
6
  def self.down
7
    remove_column :attachments, :active
8
  end
9
end
db/migrate/20110331152140_add_has_welcome_page_to_projects.rb
1
class AddHasWelcomePageToProjects < ActiveRecord::Migration
2
  def self.up
3
    add_column :projects, :has_welcome_page, :boolean
4
  end
5

  
6
  def self.down
7
    remove_column :projects, :has_welcome_page
8
  end
9
end

Also available in: Unified diff