ADD model Ignore

This commit is contained in:
Jasder 2019-11-12 15:30:22 +08:00
parent 3b22ad0a54
commit b8557840c8
3 changed files with 21 additions and 1 deletions

3
app/models/ignore.rb Normal file
View File

@ -0,0 +1,3 @@
class Ignore < ActiveRecord::Base
attr_accessible :content, :name
end

View File

@ -0,0 +1,10 @@
class CreateIgnores < ActiveRecord::Migration
def change
create_table :ignores do |t|
t.string "name"
t.text "content"
t.timestamps
end
end
end

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20191112072253) do
ActiveRecord::Schema.define(:version => 20191112072843) do
create_table "activities", :force => true do |t|
t.integer "act_id", :null => false
@ -1329,6 +1329,13 @@ ActiveRecord::Schema.define(:version => 20191112072253) do
t.datetime "updated_at", :null => false
end
create_table "ignores", :force => true do |t|
t.string "name"
t.text "content"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "innodb_monitor", :id => false, :force => true do |t|
t.integer "a"
end