mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
13 lines
260 B
Ruby
13 lines
260 B
Ruby
|
class CreateCustomUrls < ActiveRecord::Migration
|
||
|
def change
|
||
|
create_table :custom_urls do |t|
|
||
|
t.string :name
|
||
|
t.references :article
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
add_index :custom_urls, :name
|
||
|
add_index :custom_urls, :article_id
|
||
|
end
|
||
|
end
|