Sha256: a87d2e50abf227b04124c49bf7d80cd05b4aef26f6a1f071dff8161c484f2a46

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 Bytes

Contents

class CreateProclaimComments < ActiveRecord::Migration
	def change
		create_table :proclaim_comments do |t|
			t.belongs_to :post, index: true
			t.integer :parent_id

			t.string :author
			t.text :body

			t.timestamps null: false
		end

		add_foreign_key :proclaim_comments, :posts
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
proclaim-0.1.2 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.1.1 db/migrate/20141114235359_create_proclaim_comments.rb
proclaim-0.1.0 db/migrate/20141114235359_create_proclaim_comments.rb