Fix migration

This commit is contained in:
Dzmitry Plashchynski
2015-03-07 00:52:50 +02:00
parent fe24b435b3
commit 3a3620d55c

View File

@@ -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