Sha256: 4d8e343cefbba1afeac9ba35fa5cfd5a3dff73977cb9a5a91dc2346a5293089e

Contents?: true

Size: 280 Bytes

Versions: 17

Compression:

Stored size: 280 Bytes

Contents

class AddStatusToStory < ActiveRecord::Migration
  def self.up
    add_column :stories, :status, :string, :limit => 10
    add_column :stories, :completed_date, :date
  end

  def self.down
    remove_column :stories, :status
    remove_column :stories, :completed_date
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
branston-0.6.6 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.6.5 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.6.4 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.6.3 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.6.2 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.6.1 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.6.0 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.5.2 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.5.1 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.5.0 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.4.6 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.4.5 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.4.4 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.4.3 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.4.2 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.4.1 lib/branston/db/migrate/20091223100903_add_status_to_story.rb
branston-0.4.0 lib/branston/db/migrate/20091223100903_add_status_to_story.rb