Sha256: 00e049d1fe6aa610067958056e507fb27c732376f3b6ea29ba4374b23dec7b4e

Contents?: true

Size: 215 Bytes

Versions: 5

Compression:

Stored size: 215 Bytes

Contents

class CreatePosts < ActiveRecord::Migration[5.0]
  def change
    create_table :posts do |t|
      t.integer :author_id
      t.text :body
      t.integer :state, :default => 0

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notify_on-1.0.5 spec/dummy/db/migrate/20161021100842_create_posts.rb
notify_on-1.0.4 spec/dummy/db/migrate/20161021100842_create_posts.rb
notify_on-1.0.3 spec/dummy/db/migrate/20161021100842_create_posts.rb
notify_on-1.0.2 spec/dummy/db/migrate/20161021100842_create_posts.rb
notify_on-1.0.1 spec/dummy/db/migrate/20161021100842_create_posts.rb