Created
November 29, 2017 00:18
-
-
Save Insood/f412d814336cbe2406e687e2b2ff9373 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<changeSet author="liquibase-docs" id="createTable-example"> | |
<createTable catalogName="cat" | |
remarks="A String" | |
schemaName="public" | |
tableName="person" | |
tablespace="A String"> | |
<column name="address" type="varchar(255)"/> | |
</createTable> | |
</changeSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class cat < ActiveRecord::Migration | |
def change | |
create_table :person do |t| | |
t.string :address | |
t.timestamps | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment