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