Sha256: 820fe9b68c5dd7728e70b6035924ea7dc05ba0f1af6bf7d7c22b376ecfa7002a

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

# encoding: utf-8

ActiveRecord::Schema.define(:version => 1) do

  create_table "books", :force => true do |t|
    t.column "title", "string"
    t.column "type", "text"
  end

  create_table "things", :force => true do |t|
    t.column "name", "string"
  end

  create_table "posts", :force => true do |t|
    t.column "title", "string"
    t.column "content", "text"
    t.column "published", "boolean", :default => false
    t.column "created_at", "datetime"
    t.column "updated_at", "datetime"
  end

  create_table "users", :force => true do |t|
    t.column "login", "string"
    t.column "email", "string"
    t.column "created_at", "datetime"
    t.column "updated_at", "datetime"
  end

  create_table "people", :force => true do |t|
    t.column "name", "string"
    t.column "country_id", "integer"
  end

  create_table "countries", :force => true do |t|
    t.column "name", "string"
  end

  create_table "events", :force => true do |t|
    t.column "name", "string"
    t.column "event_date", "datetime"
  end

  create_table "cities", :force => true do |t|
    t.column "name", "string"
    t.column "my_slug", "string"
  end

  create_table "districts", :force => true do |t|
    t.column "name", "string"
    t.column "cached_slug", "string"
  end

  create_table "slugs", :force => true do |t|
    t.column "name", "string"
    t.column "sluggable_id", "integer"
    t.column "sequence", "integer", :null       => false, :default => 1
    t.column "sluggable_type", "string", :limit => 40
    t.column "scope", "string", :limit          => 40
    t.column "created_at", "datetime"
  end

  add_index "slugs", ["sluggable_id"], :name           => "index_slugs_on_sluggable_id"
  add_index "slugs", ["name", "sluggable_type", "scope", "sequence"], :name => "index_slugs_on_n_s_s_and_s", :unique => true

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
friendly_id-2.2.0 test/schema.rb