Project

General

Profile

Download (424 Bytes) Statistics
| Branch: | Tag: | Revision:
class CreateTrends < ActiveRecord::Migration
def self.up
create_table :trends do |t|
t.string :trendable_type
t.integer :trendable_id
t.string :name
t.string :type
t.string :fact_value
t.string :fact_name

t.timestamps
end
add_index :type
add_index [:trendable_type, :trendable_id]
add_index :fact_value
end

def self.down
drop_table :trends
end
end
(126-126/129)