Sha256: 2785ba54a57906f5a2477b842f8654981c904da474ace3643165a8cfe58d2c52

Contents?: true

Size: 238 Bytes

Versions: 4

Compression:

Stored size: 238 Bytes

Contents

class CreateEditableAreas < ActiveRecord::Migration
  def change
    create_table :editable_areas do |t|
      t.string :title, null: false
      t.text :content

      t.timestamps
    end

    add_index :editable_areas, :title
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
editable_areas-0.1.0 lib/generators/templates/create_editable_areas.rb
editable_areas-0.0.3 lib/generators/templates/create_editable_areas.rb
editable_areas-0.0.2 lib/generators/templates/create_editable_areas.rb
editable_areas-0.0.1 lib/generators/templates/create_editable_areas.rb