Sha256: b542b4372ce652d09dafcab24c8991669f9cbc79be9b25102d90685225448a75

Contents?: true

Size: 369 Bytes

Versions: 108

Compression:

Stored size: 369 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  def self.up
    create_table :deimos_poll_info, force: true do |t|
      t.string :producer, null: false
      t.datetime :last_sent
      t.bigint :last_sent_id
    end

    add_index :deimos_poll_info, [:producer]
  end

  def self.down
    drop_table :deimos_poll_info
  end

end

Version data entries

108 entries across 108 versions & 2 rubygems

Version Path
deimos-ruby-2.0.0.pre.beta3 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-2.0.0.pre.beta2 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-2.0.0.pre.beta1 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-2.0.0.pre.alpha7 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-2.0.0.pre.alpha6 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-2.0.0.pre.alpha5 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-2.0.0.pre.alpha4 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-2.0.0.pre.alpha3 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-2.0.0.pre.alpha2 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-2.0.0.pre.alpha1 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-1.24.2 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-1.24.1 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-1.24.0 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-1.23.3 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-1.23.2 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-1.23.1.pre.beta6 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-1.23.1.pre.beta5 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-1.23.1.pre.beta4 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-1.23.1.pre.beta3 lib/generators/deimos/db_poller/templates/rails3_migration
deimos-ruby-1.23.1.pre.beta2 lib/generators/deimos/db_poller/templates/rails3_migration