Sha256: cdb34241c82f80da8a721439ad3be4a3030f05b5351a2006a3bba9bbc309ad12

Contents?: true

Size: 327 Bytes

Versions: 6

Compression:

Stored size: 327 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
  
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
railsgarden-has_draft-0.1.0 test/schema.rb
railsgarden-has_draft-0.1.1 test/schema.rb
has_draft-1.2.0 spec/db/schema.rb
has_draft-1.1.0 spec/db/schema.rb
has_draft-1.0.2 spec/db/schema.rb
has_draft-1.0.1 spec/db/schema.rb