Sha256: 87b388dc518e2fcb0504d469762a521c6d02f544fd0395992c43dd2c81f55685

Contents?: true

Size: 410 Bytes

Versions: 4

Compression:

Stored size: 410 Bytes

Contents

class CreateImpressions < ActiveRecord::Migration
  def self.up
    create_table :impressions, :force => true do |t|
      t.string :impressionable_type
      t.integer :impressionable_id
      t.string :session_hash
      t.string :request_hash
      t.string :referrer
      t.string :ip_address
      t.integer :user_id
      t.timestamps
    end
  end

  def self.down
    drop_table :impressions
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
impressionizer-0.0.3 lib/generators/impressionizer/templates/migration.rb
impressionizer-0.0.3 spec/dummy/db/migrate/20110701044058_create_impressions.rb
impressionizer-0.0.2 lib/generators/impressionizer/templates/migration.rb
impressionizer-0.0.2 test/dummy/db/migrate/20110701044058_create_impressions.rb