Sha256: cae4dfae743cdfccdb79a11736291be22c0b6b9bbc8dffdc4ff7e28d943bc36f

Contents?: true

Size: 286 Bytes

Versions: 6

Compression:

Stored size: 286 Bytes

Contents

class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.string :title
      t.string :body
      t.boolean :read
      t.datetime :restored_at
    end
    add_index :articles, :read
  end

  def self.down
    drop_table :articles
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
also_migrate_nj-0.3.6 spec/db/migrate/001_create_articles.rb
also_migrate-0.3.6 spec/db/migrate/001_create_articles.rb
also_migrate-0.3.5 spec/db/migrate/001_create_articles.rb
also_migrate-0.3.4 spec/db/migrate/001_create_articles.rb
also_migrate-0.3.3 spec/db/migrate/001_create_articles.rb
also_migrate-0.3.2 spec/db/migrate/001_create_articles.rb