1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-26 18:18:51 +01:00

Rename Problem to Translation

This commit is contained in:
2014-12-13 17:00:00 +01:00
parent 94087d31d2
commit e13b82ad1f
34 changed files with 244 additions and 239 deletions

View File

@@ -0,0 +1,5 @@
class RenameProblemsTableToTranslations < ActiveRecord::Migration
def change
rename_table :problems, :translations
end
end

View File

@@ -11,9 +11,9 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20141130153941) do
ActiveRecord::Schema.define(version: 20141213151812) do
create_table "problems", force: true do |t|
create_table "translations", force: true do |t|
t.string "title"
t.text "content"
t.datetime "created_at"

View File

@@ -7,7 +7,7 @@
# Mayor.create(name: 'Emanuel', city: cities.first)
for i in 1..103 do
Problem.create(
Translation.create(
title: "Problem Nummer #{i}",
content: "Das hier ist der Inhalt von <b>Problem #{i}</b>.<br />Hier ist die zweite Zeile."
)