fiedl/your_platform

View on GitHub
demo_app/my_platform/db/migrate/20150325105874_create_posts.your_platform.rb

Summary

Maintainability
A
20 mins
Test Coverage
# This migration comes from your_platform (originally 20130329231657)
class CreatePosts < ActiveRecord::Migration[4.2]
  def change
    create_table :posts do |t|
      t.string :subject
      t.text :text
      t.integer :group_id
      t.integer :author_user_id
      t.string :external_author
      t.datetime :sent_at
      t.boolean :sticky

      t.timestamps
    end
  end
end