Sha256: 344465599ecefbc9ede67d6b69ad3ff34c079c911c375cda40687ff7d0d25c4b

Contents?: true

Size: 254 Bytes

Versions: 2

Compression:

Stored size: 254 Bytes

Contents

class CreatePosts < ActiveRecord::Migration
  def change
    create_table :posts do |t|
      t.string :title
      t.text :body
      t.datetime :published_at
      t.integer :author_id
      t.integer :category_id

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeadmin-axlsx-2.1.2 spec/rails/rails-3.2.9/db/migrate/20130602172722_create_posts.rb
activeadmin-axlsx-1.0.0a spec/rails/rails-3.2.8/db/migrate/20121103000620_create_posts.rb