Sha256: fd5078123862cb17f631f81a8102664f450210fac11ba159d48f87f3ddccdaa7
Contents?: true
Size: 545 Bytes
Versions: 8
Compression:
Stored size: 545 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