Sha256: 8ab2e255b41444f26a70958a997b88145a7fd36eae99a168a8959b6961f8466d

Contents?: true

Size: 396 Bytes

Versions: 8

Compression:

Stored size: 396 Bytes

Contents

ActiveRecord::Schema.define do
  self.verbose = false

  create_table :posts, force: true do |t|
    t.string :text
    t.references :user
    t.timestamps null: false
  end

  create_table :comments, force: true do |t|
    t.integer :post_id
    t.string :text
    t.references :user
    t.timestamps null: false
  end

  create_table :users, force: true do |t|
    t.string :username
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
calculated_attributes-0.5.0 spec/support/schema.rb
calculated_attributes-0.4.0 spec/support/schema.rb
calculated_attributes-0.3.0 spec/support/schema.rb
calculated_attributes-0.2.0 spec/support/schema.rb
calculated_attributes-0.1.5 spec/support/schema.rb
calculated_attributes-0.1.4 spec/support/schema.rb
calculated_attributes-0.1.3 spec/support/schema.rb
calculated_attributes-0.1.2 spec/support/schema.rb