Sha256: fc30a58d508c4551bb750f9e9e340590f5395dd4f582f0adb1db58999c1f765f

Contents?: true

Size: 245 Bytes

Versions: 1

Compression:

Stored size: 245 Bytes

Contents

# -*- encoding : utf-8 -*-
class CreateTasks < ActiveRecord::Migration
  def self.up
    create_table :tasks do |t|
      t.integer :a
      t.timestamps
    end

    add_index :tasks, [:a]
  end

  def self.down
    drop_table :tasks
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-app-ar-0.1.2 spec/test_app/db/migrate/20120616161100_create_tasks.rb