Sha256: fba091f3d23064441f75e16fa2e0ef867833d0fbc2045251154452ccb4675ded

Contents?: true

Size: 236 Bytes

Versions: 9

Compression:

Stored size: 236 Bytes

Contents

class CreatePosts < ActiveRecord::Migration[6.1]
  def change
    create_table :posts do |t|
      t.string :title
      t.text :description
      t.belongs_to :user, null: false, foreign_key: true

      t.timestamps
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pub_sub_model_sync-1.4.0 samples/app1/db/migrate/20210513134332_create_posts.rb
pub_sub_model_sync-1.3.1 samples/app1/db/migrate/20210513134332_create_posts.rb
pub_sub_model_sync-1.3.0 samples/app1/db/migrate/20210513134332_create_posts.rb
pub_sub_model_sync-1.2.1 samples/app1/db/migrate/20210513134332_create_posts.rb
pub_sub_model_sync-1.2.0 samples/app1/db/migrate/20210513134332_create_posts.rb
pub_sub_model_sync-1.1.1 samples/app1/db/migrate/20210513134332_create_posts.rb
pub_sub_model_sync-1.1.0 samples/app1/db/migrate/20210513134332_create_posts.rb
pub_sub_model_sync-1.0.1 samples/app1/db/migrate/20210513134332_create_posts.rb
pub_sub_model_sync-1.0 samples/app1/db/migrate/20210513134332_create_posts.rb