Class: CreatePaprs

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
app/migrations/migration.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
# File 'app/migrations/migration.rb', line 2

def change
  create_table :paprs do |t|
    t.text :content
    t.text :user
    t.integer :article_id
    t.integer :papr_id
    t.timestamps
  end
end