add nice statistics
This commit is contained in:
14
db/migrate/20200516063257_create_activity.rb
Normal file
14
db/migrate/20200516063257_create_activity.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateActivity < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :activities do |t|
|
||||
t.belongs_to :user, foreign_key: true
|
||||
t.datetime :started_at, null: false
|
||||
t.datetime :ended_at
|
||||
t.string :platform
|
||||
t.string :item_ref, null: false
|
||||
t.string :item_title, null: false
|
||||
t.string :item_length
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user