Открыть боковую панель
nt_test121
nt_project_chzwuz8hfpcw
Коммиты
b4434bd5
Коммит
b4434bd5
создал
Дек 17, 2015
по автору
Andriy Dyadyura
Просмотр файлов
update issue page
владельцы
22cf8d11
b5411b5a
Изменения
2
Развернуть все
Скрыть пробелы
Построчно
Рядом
db/migrate/20151216142142_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb
удалено
100644 → 0
Просмотр файла @
22cf8d11
# This migration comes from acts_as_taggable_on_engine (originally 1)
class
ActsAsTaggableOnMigration
<
ActiveRecord
::
Migration
def
self
.
up
create_table
:tags
do
|
t
|
t
.
string
:name
end
create_table
:taggings
do
|
t
|
t
.
references
:tag
# You should make sure that the column created is
# long enough to store the required class names.
t
.
references
:taggable
,
polymorphic:
true
t
.
references
:tagger
,
polymorphic:
true
# Limit is created to prevent MySQL error on index
# length for MyISAM table type: http://bit.ly/vgW2Ql
t
.
string
:context
,
limit:
128
t
.
datetime
:created_at
end
add_index
:taggings
,
:tag_id
add_index
:taggings
,
[
:taggable_id
,
:taggable_type
,
:context
]
end
def
self
.
down
drop_table
:taggings
drop_table
:tags
end
end
db/schema.rb
Просмотр файла @
b4434bd5
Это отличие свёрнуто
Нажмите, чтобы развернуть
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать