Sha256: a49a27fa5f86b3d531abef3ac5c3f59862f379df61e373721ccee88d22991249

Contents?: true

Size: 444 Bytes

Versions: 63

Compression:

Stored size: 444 Bytes

Contents

ActiveRecord::Schema.define do
  connection.tables.each do |table| drop_table table end

  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
    t.foreign_key :post_id, :posts, :id
  end

end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
schema_plus-2.0.0.pre1 spec/schema/core_schema.rb
schema_plus-1.8.5 spec/schema/core_schema.rb
schema_plus-1.8.4 spec/schema/core_schema.rb
schema_plus-1.8.3 spec/schema/core_schema.rb
schema_plus-1.8.2 spec/schema/core_schema.rb
schema_plus-1.8.1 spec/schema/core_schema.rb
schema_plus-1.8.0 spec/schema/core_schema.rb
schema_plus-1.7.1 spec/schema/core_schema.rb
schema_plus-1.7.0 spec/schema/core_schema.rb
schema_plus-1.6.0 spec/schema/core_schema.rb
schema_plus-1.5.3 spec/schema/core_schema.rb
schema_plus-1.5.2 spec/schema/core_schema.rb
schema_plus-1.5.1 spec/schema/core_schema.rb
schema_plus-1.5.0 spec/schema/core_schema.rb
schema_plus-1.4.1 spec/schema/core_schema.rb
schema_plus-1.4.0 spec/schema/core_schema.rb
schema_plus-1.3.3 spec/schema/core_schema.rb
schema_plus-1.3.2 spec/schema/core_schema.rb
schema_plus-1.3.1 spec/schema/core_schema.rb
schema_plus-1.3.0 spec/schema/core_schema.rb