Sha256: 65c348b2901949c6c88a65073beec87c5263e5626fd0dc44f4bd6ea74a11203c

Contents?: true

Size: 1.91 KB

Versions: 3

Compression:

Stored size: 1.91 KB

Contents

# encoding: utf-8

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

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

  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 "population", "integer"
    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

3 entries across 3 versions & 1 rubygems

Version Path
friendly_id-2.2.5 test/schema.rb
friendly_id-2.2.4 test/schema.rb
friendly_id-2.2.3 test/schema.rb