Sha256: 8977fb29e1afe4771a0f834c913e4a59e7c25060c717626894683993a32d285a

Contents?: true

Size: 575 Bytes

Versions: 7

Compression:

Stored size: 575 Bytes

Contents

ActiveRecord::Schema.define(version: 0) do
  create_table :posts, force: :cascade do |t|
    t.string :title
    t.string :type
    t.integer :location_id
    t.text :body
    t.references :blog
    t.timestamps null: true
  end

  create_table :locations, force: :cascade do |t|
    t.float :lat
    t.float :lng
  end

  create_table :blogs, force: :cascade do |t|
    t.string :name
    t.string :subdomain
    t.timestamps null: true
  end

  create_table :writers, force: :cascade, primary_key: :writer_id do |t|
    t.string :name
    t.timestamps null: true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sunspot_rails-2.7.1 spec/rails_app/db/schema.rb
sunspot_rails-2.7.0 spec/rails_app/db/schema.rb
sunspot_rails-2.6.0 spec/rails_app/db/schema.rb
sunspot_rails-2.5.0 spec/rails_app/db/schema.rb
sunspot_rails-2.4.0 spec/rails_app/db/schema.rb
sunspot_rails-2.3.0 spec/rails_app/db/schema.rb
sunspot_rails-2.2.8 spec/rails_app/db/schema.rb