Sha256: 839c19efe3c31571f33810abee0dd551b19a249626a854048a65f262edf99592

Contents?: true

Size: 559 Bytes

Versions: 7

Compression:

Stored size: 559 Bytes

Contents

ActiveRecord::Schema.define(version: 0) do
  create_table :posts, force: true 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: true do |t|
    t.float :lat
    t.float :lng
  end

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

  create_table :writers, force: true, 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/schema.rb
sunspot_rails-2.7.0 spec/schema.rb
sunspot_rails-2.6.0 spec/schema.rb
sunspot_rails-2.5.0 spec/schema.rb
sunspot_rails-2.4.0 spec/schema.rb
sunspot_rails-2.3.0 spec/schema.rb
sunspot_rails-2.2.8 spec/schema.rb