discourse/db/migrate/20150318143915_create_direc...

17 lines
509 B
Ruby
Raw Normal View History

class CreateDirectoryItems < ActiveRecord::Migration
def change
create_table :directory_items, force: true do |t|
t.integer :period_type, null: false
t.references :user, null: false
t.integer :likes_received, null: false
t.integer :likes_given, null: false
t.integer :topics_entered, null: false
t.integer :topic_count, null: false
t.integer :post_count, null: false
2017-08-07 20:59:18 -04:00
t.timestamps null: true
end
add_index :directory_items, :period_type
end
end