test generated files... committing so I can build TODO: ignore these

This commit is contained in:
cowboycoded 2011-02-11 22:25:55 -05:00
parent 22e83c58ba
commit f0b0a2c55d
3 changed files with 32 additions and 21 deletions

View File

@ -1,20 +0,0 @@
class CreateImpressionsTable < ActiveRecord::Migration
def self.up
create_table :impressions, :force => true do |t|
t.string :impressionable_type
t.integer :impressionable_id
t.integer :user_id
t.string :controller_name
t.string :action_name
t.string :view_name
t.string :request_hash
t.string :ip_address
t.string :message
t.timestamps
end
end
def self.down
drop_table :impressions
end
end

View File

@ -0,0 +1,27 @@
class CreateImpressionsTable < ActiveRecord::Migration
def self.up
create_table :impressions, :force => true do |t|
t.string :impressionable_type
t.integer :impressionable_id
t.integer :user_id
t.string :controller_name
t.string :action_name
t.string :view_name
t.string :request_hash
t.string :ip_address
t.string :message
t.timestamps
end
add_index :impressions, [:impressionable_type, :impressionable_id, :request_hash, :ip_address], :name => "poly_index", :unique => false
add_index :impressions, [:controller_name,:action_name,:request_hash,:ip_address], :name => "controlleraction_index", :unique => false
add_index :impressions, :user_id
end
def self.down
remove_index :impressions, :name => :poly_index
remove_index :impressions, :name => :controlleraction_index
remove_index :impressions, :user_id
drop_table :impressions
end
end

View File

@ -10,7 +10,7 @@
# #
# It's strongly recommended to check this file into your version control system. # It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20110210205028) do ActiveRecord::Schema.define(:version => 20110212032114) do
create_table "articles", :force => true do |t| create_table "articles", :force => true do |t|
t.string "name" t.string "name"
@ -32,6 +32,10 @@ ActiveRecord::Schema.define(:version => 20110210205028) do
t.datetime "updated_at" t.datetime "updated_at"
end end
add_index "impressions", ["controller_name", "action_name", "request_hash", "ip_address"], :name => "controlleraction_index"
add_index "impressions", ["impressionable_type", "impressionable_id", "request_hash", "ip_address"], :name => "poly_index"
add_index "impressions", ["user_id"], :name => "index_impressions_on_user_id"
create_table "posts", :force => true do |t| create_table "posts", :force => true do |t|
t.string "name" t.string "name"
t.datetime "created_at" t.datetime "created_at"