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