建立所有数据库表
This commit is contained in:
parent
c3e9b917b0
commit
235156aa7b
|
@ -1,2 +0,0 @@
|
||||||
class Word < ActiveRecord::Base
|
|
||||||
end
|
|
|
@ -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
|
|
|
@ -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
|
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class WordTest < ActiveSupport::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
Loading…
Reference in New Issue