Sha256: 21210d323025dc9133767a4a9a0f0cca023724c43ff60afaa46a679c89dba60e

Contents?: true

Size: 317 Bytes

Versions: 13

Compression:

Stored size: 317 Bytes

Contents

class CreateUpdates < ActiveRecord::Migration
  def self.up
    create_table :updates do |t|
      t.integer "source_id"
      t.text "status"
      t.timestamps
    end
    add_column :sources, :next_update, :datetime
  end

  def self.down
    remove_column :sources, :next_update
    drop_table :updates
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
calagator-1.0.0 db/migrate/015_create_updates.rb
grokus-1.0.0.9 db/migrate/015_create_updates.rb
grokus-1.0.0.8 db/migrate/015_create_updates.rb
grokus-1.0.0.7 db/migrate/015_create_updates.rb
grokus-1.0.0.6 db/migrate/015_create_updates.rb
grokus-1.0.0.5 db/migrate/015_create_updates.rb
grokus-1.0.0.3 db/migrate/015_create_updates.rb
grokus-1.0.0.2 db/migrate/015_create_updates.rb
grokus-1.0.0.1 db/migrate/015_create_updates.rb
calagator-1.0.0.rc3 db/migrate/015_create_updates.rb
calagator-1.0.0.rc2 db/migrate/015_create_updates.rb
calagator-1.0.0.rc1 db/migrate/015_create_updates.rb
calagator-0.0.1.pre1 db/migrate/015_create_updates.rb