Sha256: db4e83878a379af3f80a367cd41fb64ed0c23062ece0deb7799dbe14fa22ca03

Contents?: true

Size: 355 Bytes

Versions: 55

Compression:

Stored size: 355 Bytes

Contents

class GovernorCreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.string      :title, :description
      t.string      :format, :default => 'default'
      t.text        :post
      t.references  :author, :polymorphic => true
      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end

Version data entries

55 entries across 55 versions & 10 rubygems

Version Path
governor_comments-0.2.7 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_comments-0.2.6 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_tags-0.2.2 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_comments-0.2.5 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_comments-0.2.4 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_comments-0.2.3 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_thinking_sphinx-0.1.4 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_comments-0.2.2 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor-0.5.7 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_states-0.1.0 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor-0.5.6 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor-0.5.5 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_livejournal-0.2.1 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_blogger-0.1.2 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_blogger-0.1.1 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_twitter-0.1.2 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_twitter-0.1.1 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_background-0.3.0 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor-0.5.4 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb
governor_twitter-0.1.0 spec/rails_app/db/migrate/20110330020108_governor_create_articles.rb