Sha256: 5785a9aecbd27889c30f5b8cb1409d32d89a33713eb0f73bc76dc8b9ee360f1e

Contents?: true

Size: 255 Bytes

Versions: 70

Compression:

Stored size: 255 Bytes

Contents

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

  def self.down
    drop_table :comments
  end
end

Version data entries

70 entries across 70 versions & 22 rubygems

Version Path
akitaonrails-resource_controller-0.5.2 test/db/migrate/003_create_comments.rb
akitaonrails-resource_controller-0.5.3 test/db/migrate/003_create_comments.rb
csmosx-resource_controller-0.6.6 test/db/migrate/003_create_comments.rb
csmosx-resource_controller-0.6.7 test/db/migrate/003_create_comments.rb
dkubb-resource_controller-0.6.5 test/db/migrate/003_create_comments.rb
giraffesoft-resource_controller-0.4.10 test/db/migrate/003_create_comments.rb
giraffesoft-resource_controller-0.4.12 test/db/migrate/003_create_comments.rb
giraffesoft-resource_controller-0.4.9 test/db/migrate/003_create_comments.rb
giraffesoft-resource_controller-0.5.2 test/db/migrate/003_create_comments.rb
giraffesoft-resource_controller-0.5.3 test/db/migrate/003_create_comments.rb
giraffesoft-resource_controller-0.5.5 test/db/migrate/003_create_comments.rb
giraffesoft-resource_controller-0.5.6 test/db/migrate/003_create_comments.rb
giraffesoft-resource_controller-0.6.0 test/db/migrate/003_create_comments.rb
giraffesoft-resource_controller-0.6.1 test/db/migrate/003_create_comments.rb
giraffesoft-resource_controller-0.6.5 test/db/migrate/003_create_comments.rb
jeffrafter-resource_controller-0.5.5 test/db/migrate/003_create_comments.rb
kdmny-spree-0.0.1 vendor/plugins/resource_controller/test/db/migrate/003_create_comments.rb
korin-resource_controller-0.5.3 test/db/migrate/003_create_comments.rb
maser-resource_controller-0.6.6 test/db/migrate/003_create_comments.rb
nileshtrivedi-lp_resource_builder-0.5.1 test/db/migrate/003_create_comments.rb