Sha256: f29b46ec2ed9f846258f59be40468591784855fd04ee65ddb0ba873e37e697f8

Contents?: true

Size: 206 Bytes

Versions: 5

Compression:

Stored size: 206 Bytes

Contents

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

      t.timestamps null: false
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
deforest-1.1.1 test/dummy/db/migrate/20230216154544_create_posts.rb
deforest-1.1.0 test/dummy/db/migrate/20230216154544_create_posts.rb
deforest-1.0.2 test/dummy/db/migrate/20230216154544_create_posts.rb
deforest-1.0.1 test/dummy/db/migrate/20230216154544_create_posts.rb
deforest-1.0.0 test/dummy/db/migrate/20230216154544_create_posts.rb