spec/dummy/db/schema.rb in almanac-0.4.5 vs spec/dummy/db/schema.rb in almanac-0.5.0
- old
+ new
@@ -9,11 +9,11 @@
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20121114185269) do
+ActiveRecord::Schema.define(:version => 20121116195111) do
create_table "almanac_blogs", :force => true do |t|
t.string "title"
t.integer "author_id"
t.datetime "created_at", :null => false
@@ -56,10 +56,13 @@
t.integer "author_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.text "excerpt"
t.date "written_at"
+ t.string "slug"
end
+
+ add_index "almanac_posts", ["slug"], :name => "index_almanac_posts_on_slug", :unique => true
create_table "taggings", :force => true do |t|
t.integer "tag_id"
t.integer "taggable_id"
t.string "taggable_type"