Sha256: c3f38bb9ec3ad2b86b9ba04687aa6494ccb36f497ce9f6ae7fa797d0f986346c

Contents?: true

Size: 1.31 KB

Versions: 4

Compression:

Stored size: 1.31 KB

Contents

# Adds tables for the base application we brought to the competition.
# origin: RM
class InitialTables < ActiveRecord::Migration

  def self.up

    create_table "taggings", :force => true do |t|
      t.integer  "tag_id"
      t.integer  "taggable_id"
      t.integer  "tagger_id"
      t.string   "tagger_type"
      t.string   "taggable_type"
      t.string   "context"
      t.datetime "created_at"
    end

    add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
    add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"

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

    create_table "users", :force => true do |t|
      t.string   "email"
      t.string   "encrypted_password"
      t.string   "salt"
      t.string   "confirmation_token"
      t.string   "remember_token"
      t.boolean  "email_confirmed"
      t.string   "first_name"
      t.string   "last_name"
      t.string   "full_name"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.string   "role_name"
      t.boolean  "locked"
      t.boolean  "deleted"
    end

    add_index "users", ["email"], :unique => true

  end

  def self.down

    drop_table 'taggings'
    drop_table 'tags'
    drop_table 'users'

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serum-rails-0.2.1 spec/test_apps/rails-2-3/db/migrate/20110114164517_initial_tables.rb
serum-rails-0.2.0 spec/test_apps/rails-2-3/db/migrate/20110114164517_initial_tables.rb
serum-rails-0.1.1 spec/test_app/db/migrate/20110114164517_initial_tables.rb
serum-rails-0.1.0 spec/test_app/db/migrate/20110114164517_initial_tables.rb