Class: CreateThreadsPadJobLogs
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateThreadsPadJobLogs
- Defined in:
- lib/generators/threads_pad/templates/threads_pad_job_log_migration.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
13 14 15 16 |
# File 'lib/generators/threads_pad/templates/threads_pad_job_log_migration.rb', line 13 def down drop_table :threads_pad_job_logs end |
#up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/threads_pad/templates/threads_pad_job_log_migration.rb', line 2 def up create_table :threads_pad_job_logs do |t| t.integer :job_reflection_id t.integer :level t.integer :group_id t.text :msg t.datetime "created_at", null: false t.index :job_reflection_id end end |