建立所有数据库表

This commit is contained in:
tanhuazhe 2015-12-08 15:06:33 -06:00
parent c3e9b917b0
commit 235156aa7b
4 changed files with 0 additions and 28 deletions

View File

@ -1,2 +0,0 @@
class Word < ActiveRecord::Base
end

View File

@ -1,10 +0,0 @@
class CreateWords < ActiveRecord::Migration
def change
create_table :words do |t|
t.string :name
t.text :description
t.timestamps null: false
end
end
end

View File

@ -1,9 +0,0 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
name: MyString
description: MyText
two:
name: MyString
description: MyText

View File

@ -1,7 +0,0 @@
require 'test_helper'
class WordTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end