Sha256: 5ef4a75f6a85fbb75897acf14f69380a3d60e6d398e080155757fda50b3d0c34

Contents?: true

Size: 319 Bytes

Versions: 1

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

class CreateSubjectAreas < ActiveRecord::Migration
  def change
    create_table :subject_areas do |t|
      t.string      :title
      t.string      :slug
      t.timestamps
    end

    remove_column :samples, :subject_area
    add_column :samples, :subject_area_id, :integer
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 db/migrate/20130719130021_create_subject_areas.rb