Class: CreateEmployerJobs
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateEmployerJobs
- Defined in:
- lib/generators/employer/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# File 'lib/generators/employer/templates/migration.rb', line 2 def change create_table :employer_jobs do |t| t.string :state t.string :type t.text :properties t. end add_index :employer_jobs, [:state, :created_at], order: {created_at: :asc} end |