Sha256: d43899976a444d373e20e7f15e0e23de485f18e84f27d8774777db20dfaa0d6d

Contents?: true

Size: 745 Bytes

Versions: 2

Compression:

Stored size: 745 Bytes

Contents

ActiveRecord::Schema.define(:version => 0) do
  
  [:articles, :article_drafts].each do |table_name|
    create_table table_name, :force => true do |t|
      t.references :article if table_name == :article_drafts
      
      t.string :title
      t.text :summary
      t.text :body
      t.date :post_date
    end
  end

  [:posts, :post_drafts].each do |table_name|
    create_table table_name, :force => true do |t|
      t.references :post if table_name == :post_drafts

      t.string :title
      t.text :body
    end
  end

  [:pages, :page_drafts].each do |table_name|
    create_table table_name, :force => true do |t|
      t.references :page if table_name == :page_drafts

      t.string :title
      t.text :body
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
has_draft-1.4.0 spec/db/schema.rb
has_draft-1.3.0 spec/db/schema.rb