Sha256: c79d690d96de974c6b989477c8fbbd3a861ab809f1be274ad4a6b10aed340e52

Contents?: true

Size: 399 Bytes

Versions: 10

Compression:

Stored size: 399 Bytes

Contents

ActiveRecord::Schema.define do

  create_table :users, :force => true do |t|
    t.string :login
    t.datetime :deleted_at
  end

  create_table :posts, :force => true do |t|
    t.text :body
    t.integer :user_id
    t.integer :author_id
  end

  create_table :comments, :force => true do |t|
    t.text :body
    t.integer :post_id
  end

  add_foreign_key :comments, :post_id, :posts, :id

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
aspgems-redhillonrails_core-2.0.0.beta4 spec/schema/schema.rb
redhillonrails_core-2.0.0.pre spec/schema/schema.rb
redhillonrails_core-1.2.0 spec/schema/schema.rb
aspgems-redhillonrails_core-2.0.0.beta2 spec/schema/schema.rb
aspgems-redhillonrails_core-2.0.0.beta1 spec/schema/schema.rb
redhillonrails_core-1.1.3 spec/schema/schema.rb
redhillonrails_core-1.1.3.pre1 spec/schema/schema.rb
redhillonrails_core-1.1.2 spec/schema/schema.rb
redhillonrails_core-1.1.1 spec/schema/schema.rb
redhillonrails_core-1.1.0 spec/schema/schema.rb