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.9.4.7 spec/dummy/db/migrate/004_create_article.rb
cantango-0.9.4.7 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.9.4.6 spec/dummy/db/migrate/004_create_article.rb
cantango-0.9.4.6 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.9.4.5 spec/dummy/db/migrate/004_create_article.rb
cantango-0.9.4.5 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.9.4.3 spec/dummy/db/migrate/004_create_article.rb
cantango-0.9.4.3 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.9.4.2 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.9.4.2 spec/dummy/db/migrate/004_create_article.rb
cantango-0.9.4.1 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.9.4.1 spec/dummy/db/migrate/004_create_article.rb
cantango-0.9.4 spec/dummy/db/migrate/004_create_article.rb
cantango-0.9.4 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.9.3.2 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.9.3.2 spec/dummy/db/migrate/004_create_article.rb
cantango-0.8.9.5 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.8.9.5 spec/dummy/db/migrate/004_create_article.rb
cantango-0.8.9.4 spec/devise-dummy/db/migrate/004_create_article.rb
cantango-0.8.9.4 spec/dummy/db/migrate/004_create_article.rb