Sha256: cb88e6e8d14818c1830c0c5b11d17e4cf137c92ed62406829c92a952b359f394

Contents?: true

Size: 302 Bytes

Versions: 102

Compression:

Stored size: 302 Bytes

Contents

class AddTitleAndDescriptionToDocument < ActiveRecord::Migration
    def self.up
      add_column :documents, :title, :string
      add_column :documents, :description, :text
    end
    
    def self.down
      remove_column :documents, :title
      remove_column :documents, :description
    end
end

Version data entries

102 entries across 102 versions & 4 rubygems

Version Path
social_stream-0.24.1 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-documents-0.12.1 db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.24.0 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-documents-0.12.0 db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.23.4 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.23.3 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-documents-0.11.5 db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.23.2 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-documents-0.11.4 db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.23.1 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-documents-0.11.3 db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.22.1 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-documents-0.11.2 db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.22.0 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.21.4 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-documents-0.11.1 db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.21.3 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.21.2 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.21.1 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb
social_stream-0.21.0 documents/db/migrate/20111005112707_add_title_and_description_to_document.rb