Sha256: a43eafb20d42c2e6a60130720c2669eb788c89c9dd7684d8a2f958c987bcb143

Contents?: true

Size: 1.38 KB

Versions: 26

Compression:

Stored size: 1.38 KB

Contents

# encoding: UTF-8

[
  {
    :title => "Nineteen Eighty-Four",
    :author => "George Orwell",
    :year => 1949
  },
  {
    :title => "Fahrenheit 451",
    :author => "Ray Bradbury",
    :year => 1953
  },
  {
    :title => "A Tale of Two Cities",
    :author => "Charles Dickens",
    :year => 1859
  },
  {
    :title => "Robinson Crusoe",
    :author => "Daniel Defoe",
    :year => 1719
  },
  {
    :title => "Emma",
    :author => "Jane Austen",
    :year => 1815
  },
  {
    :title => "Frankenstein",
    :author => "Mary Shelley",
    :year => 1818
  },
  {
    :title => "The Count of Monte Cristo",
    :author => "Alexandre Dumas",
    :year => 1844
  },
  {
    :title => "Wuthering Heights",
    :author => "Emily Brontë",
    :year => 1847
  },
  {
    :title => "The Woman in White",
    :author => "Wilkie Collins",
    :year => 1859
  },
  {
    :title => "Alice's Adventures In Wonderland",
    :author => "Lewis Carroll",
    :year => 1865
  },
  {
    :title => "The Portrait of a Lady",
    :author => "Henry James",
    :year => 1881
  },
  {
    :title => "Brave New World",
    :author => "Aldous Huxley",
    :year => 1932
  }
].each_with_index do |data,i|
  b = Book.new
  b.title = data[:title]
  b.author = data[:author]
  b.year = data[:year]
  b.created_at = (Time.now - (i + 5).days)
  b.updated_at = b.created_at + rand(3).days
  puts %|Added "#{data[:title]}"|
  b.save!
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
tableling-rails-0.0.26 spec/dummy/db/seeds.rb
tableling-rails-0.0.25 spec/dummy/db/seeds.rb
filtrum-0.1.0 spec/dummy/db/seeds.rb
tableling-rails-0.0.24 spec/dummy/db/seeds.rb
tableling-rails-0.0.23 spec/dummy/db/seeds.rb
tableling-rails-0.0.22 spec/dummy/db/seeds.rb
tableling-rails-0.0.21 spec/dummy/db/seeds.rb
tableling-rails-0.0.20 spec/dummy/db/seeds.rb
tableling-rails-0.0.19 spec/dummy/db/seeds.rb
tableling-rails-0.0.18 spec/dummy/db/seeds.rb
tableling-rails-0.0.17 spec/dummy/db/seeds.rb
tableling-rails-0.0.16 spec/dummy/db/seeds.rb
tableling-rails-0.0.15 spec/dummy/db/seeds.rb
tableling-rails-0.0.14 spec/dummy/db/seeds.rb
tableling-rails-0.0.13 spec/dummy/db/seeds.rb
tableling-rails-0.0.12 spec/dummy/db/seeds.rb
tableling-rails-0.0.11 spec/dummy/db/seeds.rb
tableling-rails-0.0.10 spec/dummy/db/seeds.rb
tableling-rails-0.0.9 spec/dummy/db/seeds.rb
tableling-rails-0.0.8 spec/dummy/db/seeds.rb