Sha256: 805404fb4fb122d5d91728c856388c766e2e06ccfe4cffac8cab019e865cf81a

Contents?: true

Size: 459 Bytes

Versions: 18

Compression:

Stored size: 459 Bytes

Contents

class CreateNewsPosts < ActiveRecord::Migration
  def change
    create_table :news_posts do |t|
      t.text :title
      t.text :body
      t.integer :user_id
      t.datetime :start_date
      t.datetime :end_date
      t.integer :required_role_id, :default => 1, :null => false
      t.text :note
      t.integer :position
      t.boolean :draft, :default => false, :null => false

      t.timestamps
    end
    add_index :news_posts, :user_id
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
enju_news-0.2.0 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.2.0.beta.3 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.2.0.beta.2 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.1 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.0 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.0.pre9 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.0.pre8 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.0.pre7 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.0.pre6 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.0.pre5 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.0.pre4 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.0.pre3 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.0.pre2 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.1.0.pre db/migrate/20090126071155_create_news_posts.rb
enju_news-0.0.5 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.0.4 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.0.3 db/migrate/20090126071155_create_news_posts.rb
enju_news-0.0.2 db/migrate/20090126071155_create_news_posts.rb