Sha256: 4c2148b93294e23b7d128716ab1ac00859df470ca35a169ef5d120831805942f

Contents?: true

Size: 255 Bytes

Versions: 44

Compression:

Stored size: 255 Bytes

Contents

class CreateArticle < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.integer   :user_id
      t.string    :title
      t.string    :body
      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end

Version data entries

44 entries across 22 versions & 1 rubygems

Version Path
cantango-0.8.5.1 spec/dummy/db/migrate/004_create_article.rb
cantango-0.8.5.1 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.8.0 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.8.0 spec/dummy/db/migrate/004_create_article.rb