Sha256: 3ebe432476b7d9f7884b87b63944001e8e9ebac08cb1cafac2251174ff5264eb

Contents?: true

Size: 308 Bytes

Versions: 23

Compression:

Stored size: 308 Bytes

Contents

class CreateComments < ActiveRecord::Migration[5.0]
  def self.up
    create_table :comments do |t|
      t.string  :name
      t.text    :comment
      t.integer :user_id
      t.integer :votes, :default => 0

      t.timestamps null: false
    end
  end

  def self.down
    drop_table :comments
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
merit-4.0.3 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.12 test/dummy/db/migrate/20110421191250_create_comments.rb
merit-4.0.2 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.11 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.10 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.09 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.08 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.07 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.06 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.05 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.04 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.03 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.02 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.01 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.5.00 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.0.4 test/dummy/db/migrate/20110421191250_create_comments.rb
qalam_merit-4.0.35 test/dummy/db/migrate/20110421191250_create_comments.rb
merit-4.0.1 test/dummy/db/migrate/20110421191250_create_comments.rb
merit-4.0.0 test/dummy/db/migrate/20110421191250_create_comments.rb
merit-3.0.3 test/dummy/db/migrate/20110421191250_create_comments.rb