class CreateWidgets < ActiveRecord::Migration
def self.up
create_table :widgets do |t|
t.string :name
t.integer :impressions_count, :default => 0
t.timestamps
end
def self.down
drop_table :widgets