Sha256: 5ec6e82c38ab5be0fea915b2f5ea96998983fd2aae24f13f9cc64942922492df

Contents?: true

Size: 260 Bytes

Versions: 4

Compression:

Stored size: 260 Bytes

Contents

class CreateComments < ActiveRecord::Migration
  def self.up
    create_table :comments do |t|
      t.text :body
      t.string :author
      t.integer :post_id

      t.timestamps null: false
    end
  end

  def self.down
    drop_table :comments
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/cocoon-1.2.15/spec/dummy/db/migrate/20110306212250_create_comments.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/cocoon-1.2.15/spec/dummy/db/migrate/20110306212250_create_comments.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/cocoon-1.2.15/spec/dummy/db/migrate/20110306212250_create_comments.rb
cocoon-1.2.15 spec/dummy/db/migrate/20110306212250_create_comments.rb