Skip to content

Instantly share code, notes, and snippets.

@laffy
Created November 27, 2014 19:48
Show Gist options
  • Save laffy/3d3224ce4538c6f8d442 to your computer and use it in GitHub Desktop.
Save laffy/3d3224ce4538c6f8d442 to your computer and use it in GitHub Desktop.
@@ -13,15 +13,15 @@ class CreateJobs < ActiveRecord::Migration
t.integer :recruiter_commission
t.integer :cv_limit_per_recruiter
t.string :status, :limit => 10, :default => "open"
- t.text :keywords, :default => ""
-
+ t.text :keywords
+
t.datetime :listing_start
t.datetime :terminate_at
t.timestamps
-
+
t.references :recruiter, :category, :employer
end
-
+
add_index :jobs, :category_id
add_index :jobs, :recruiter_id
add_index :jobs, :salary_min
diff --git a/db/migrate/20101202155105_acts_as_taggable_on_migration.rb b/db/migrate/20101202155105_acts_as_taggable_on_migration.rb
index 2782714..7ea00c7 100644
--- a/db/migrate/20101202155105_acts_as_taggable_on_migration.rb
+++ b/db/migrate/20101202155105_acts_as_taggable_on_migration.rb
@@ -18,7 +18,7 @@ class ActsAsTaggableOnMigration < ActiveRecord::Migration
end
add_index :taggings, :tag_id
- add_index :taggings, [:taggable_id, :taggable_type, :context], :name => :taggable_type_context, :length => 1000
+ #add_index :taggings, [:taggable_id, :taggable_type, :context], :name => :taggable_type_context, :length => 1000
end
def self.down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment