Sha256: f064a42dd85f8813243b998f77edc665a928da13138a457333041bf8a43d8881

Contents?: true

Size: 235 Bytes

Versions: 17

Compression:

Stored size: 235 Bytes

Contents

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

  def self.down
    drop_table :comments
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
cancan-permits-0.3.12 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.11 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.10 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.9 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.8 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.7 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.6 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.5 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.4 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.2 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.1 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.3.0 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.2.9 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.2.8 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.2.7 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.2.5 spec/active_record/migrations/004_create_article.rb
cancan-permits-0.2.3 spec/active_record/migrations/004_create_article.rb