mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-26 19:31:39 +01:00
Fix migration
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class CreateActiveAdminComments < ActiveRecord::Migration
|
||||
class CreateCronoJobs < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :crono_jobs do |t|
|
||||
t.string :job_id, null: false
|
||||
@@ -6,7 +6,7 @@ class CreateActiveAdminComments < ActiveRecord::Migration
|
||||
t.datetime :last_performed_at
|
||||
t.timestamps
|
||||
end
|
||||
add_index :crono_jobs, [:job_id]
|
||||
add_index :crono_jobs, [:job_id], unique: true
|
||||
end
|
||||
|
||||
def self.down
|
||||
|
||||
Reference in New Issue
Block a user