impressionist/test_app/db/migrate/20110201164012_create_impre...

20 lines
471 B
Ruby
Raw Normal View History

2011-02-04 04:13:41 +00:00
class CreateImpressionsTable < ActiveRecord::Migration
def self.up
create_table :impressions, :force => true do |t|
t.string :impressionable_type
t.integer :impressionable_id
t.integer :user_id
t.string :controller_name
t.string :action_name
t.string :view_name
t.string :request_hash
t.string :ip_address
t.string :message
t.timestamps
end
end
def self.down
drop_table :impressions
end
end