Sha256: 3eefe002ff35d5d12d3260ed123c50f54c20ea8b0fe293e7b5169bbbccaa925a
Contents?: true
Size: 521 Bytes
Versions: 8
Compression:
Stored size: 521 Bytes
Contents
class CreateEcmCoursesCourses < ActiveRecord::Migration def change create_table :ecm_courses_courses do |t| t.string :name t.text :description t.string :locale # references t.integer :ecm_courses_course_dates_count, default: 0, null: false t.references :ecm_courses_course_category # acts as list t.integer :position # friendly id t.string :slug t.timestamps end add_index :ecm_courses_courses, :ecm_courses_course_category_id end end
Version data entries
8 entries across 8 versions & 1 rubygems