Using created_at instead of legacy 'uploaddatetime' field
This commit is contained in:
parent
48ca75cb64
commit
3eeb9a63dc
6 changed files with 22 additions and 13 deletions
6
db/migrate/20160304140037_rename_uploaddatetime.rb
Normal file
6
db/migrate/20160304140037_rename_uploaddatetime.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class RenameUploaddatetime < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :screenshots, :created_at
|
||||
rename_column :screenshots, :uploaddatetime, :created_at
|
||||
end
|
||||
end
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160302135740) do
|
||||
ActiveRecord::Schema.define(version: 20160304140037) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
|
@ -45,14 +45,13 @@ ActiveRecord::Schema.define(version: 20160302135740) do
|
|||
create_table "screenshots", force: :cascade do |t|
|
||||
t.integer "package_id"
|
||||
t.string "version", limit: 50
|
||||
t.datetime "uploaddatetime"
|
||||
t.datetime "created_at"
|
||||
t.string "uploaderhash", limit: 72
|
||||
t.string "uploaderip", limit: 15
|
||||
t.boolean "approved"
|
||||
t.boolean "markedfordelete"
|
||||
t.string "delete_reason", limit: 100
|
||||
t.string "description", limit: 40
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "image_file_name"
|
||||
t.string "image_content_type"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue