added ads
This commit is contained in:
16
db/migrate/20100215224635_create_advertisement_hits.rb
Normal file
16
db/migrate/20100215224635_create_advertisement_hits.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class CreateAdvertisementHits < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :advertisement_hits do |t|
|
||||
t.column :advertisement_id, :integer, :null => false
|
||||
t.column :ip_addr, "inet", :null => false
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :advertisement_hits, :advertisement_id
|
||||
add_index :advertisement_hits, :created_at
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :advertisement_hits
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user